/* =========================================================
   Real estate concept demo — SleakSkin portfolio
   ========================================================= */

:root {
  /* Fonts */
  --font-title:   'Tenor Sans', serif;
  --font-default: 'Jost', system-ui, sans-serif;

  /* Greyscale palette (no accent — pure editorial) */
  --ink:        #000000;
  --ink-soft:   #292929;
  --grey-700:   #3F3F3F;
  --grey-500:   #616161;
  --grey-400:   #767676;
  --grey-300:   #B0B0B0;
  --grey-100:   #F0F0F0;
  --paper:      #FFFFFF;

  /* Motion */
  --t:          all 0.3s ease-in-out;
  --t-slow:     all 0.6s cubic-bezier(.22,1,.36,1);

  /* Layout */
  --container:  1280px;
  --pad-x:      clamp(20px, 4vw, 64px);
  --pad-y:      clamp(80px, 10vw, 160px);
}

/* ========== RESET ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-default);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; transition: var(--t); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* ========== TYPOGRAPHY ========== */
h1, h2 {
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.975;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 300;
  line-height: 1;
}
h2 {
  font-size: clamp(36px, 4.5vw, 72px);
}
h1 span, h2 span {
  font-weight: 600;
}
h3 {
  font-family: var(--font-title);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-default);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 24px;
}
.eyebrow--light { color: rgba(255,255,255,0.85); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  font-family: var(--font-default);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 18px 36px;
  border: 1px solid currentColor;
  transition: var(--t);
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--light { color: var(--paper); border-color: rgba(255,255,255,0.9); }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn--dark  { color: var(--ink); border-color: var(--ink); }
.btn--ghost { color: var(--ink); border-color: var(--grey-300); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px clamp(20px, 3vw, 48px);
  background: transparent;
  transition: background 0.4s ease, color 0.4s ease, padding 0.3s ease;
  color: var(--paper);
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey-100);
}
.nav__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit;
}
.nav__icon--menu { justify-self: start; display: inline-flex; flex-direction: column; gap: 5px; }
.nav__icon--menu span {
  display: block;
  width: 22px; height: 1px;
  background: currentColor;
}
.nav__logo { justify-self: center; }
.nav__logo-mark {
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: 0.15em;
}
.nav__icons {
  justify-self: end;
  display: flex; gap: 4px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: var(--paper);
}
.hero__media,
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 var(--pad-x) clamp(80px, 12vh, 140px);
  max-width: 900px;
}
.hero__content h1 { margin-bottom: 36px; }
.hero__content .btn { align-self: flex-start; }
.hero__scroll {
  position: absolute;
  right: var(--pad-x);
  bottom: 60px;
  z-index: 2;
  display: flex; align-items: center; gap: 16px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
.hero__scroll-line {
  display: inline-block;
  width: 60px; height: 1px;
  background: currentColor;
}

/* ========== STATS ========== */
.stats {
  border-top: 1px solid var(--grey-100);
  border-bottom: 1px solid var(--grey-100);
  padding: clamp(60px, 8vw, 100px) var(--pad-x);
}
.stats__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat { text-align: left; }
.stat__num {
  font-family: var(--font-title);
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}
.stat__num span {
  font-size: 0.4em;
  vertical-align: super;
  color: var(--grey-400);
  margin-left: 2px;
}
.stat__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-500);
}

/* ========== LISTINGS ========== */
.listings {
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
}
.section-head { margin-bottom: 64px; }
.section-head--center { text-align: center; }
.listings__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}
.listing { display: block; }
.listing__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 20px;
}
.listing__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.22,1,.36,1);
}
.listing:hover .listing__img img { transform: scale(1.04); }
.listing__price {
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.listing__addr {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.listing__specs {
  font-size: 13px;
  color: var(--grey-500);
}
.listings__cta { text-align: center; }

/* ========== BIO ========== */
.bio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
}
.bio__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.bio__media img { width: 100%; height: 100%; object-fit: cover; }
.bio__copy h2 { margin-bottom: 36px; }
.bio__lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.bio__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey-500);
  margin-bottom: 36px;
}

/* ========== CTA GRID ========== */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cta-card {
  position: relative;
  padding: clamp(48px, 6vw, 80px) clamp(28px, 3vw, 48px);
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--grey-100);
  background: var(--paper);
  color: var(--ink);
  transition: var(--t);
}
.cta-card:last-child { border-right: 0; }
.cta-card--dark { background: var(--ink); color: var(--paper); }
.cta-card--dark .eyebrow { color: rgba(255,255,255,0.7); }
.cta-card:hover { transform: translateY(-4px); }
.cta-card__arrow {
  font-family: var(--font-title);
  font-size: 28px;
  transition: var(--t);
}
.cta-card:hover .cta-card__arrow { transform: translateX(8px); }

/* ========== TEAM ========== */
.team {
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.member { text-align: left; }
.member__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 24px;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15); transition: var(--t-slow); }
.member:hover .member__photo img { filter: grayscale(0); transform: scale(1.03); }
.member__name {
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.member__name em {
  font-family: var(--font-default);
  font-style: normal;
  font-size: 0.55em;
  color: var(--grey-500);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-left: 4px;
  vertical-align: 2px;
}
.member__role {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-500);
}

/* ========== CONTACT ========== */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: var(--pad-y) var(--pad-x);
}
.contact__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.contact h2 { color: var(--paper); margin-bottom: 24px; }
.contact__lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: rgba(255,255,255,0.7);
  margin-bottom: 56px;
}
.contact__form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  margin-bottom: 48px;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.field input,
.field textarea {
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  color: var(--paper);
  padding: 10px 0;
  outline: none;
  transition: var(--t);
  resize: none;
}
.field input:focus,
.field textarea:focus { border-color: var(--paper); }
.contact__form .btn { grid-column: 1 / -1; justify-self: center; margin-top: 16px; }
.contact__direct {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 0.05em;
}
.contact__direct a:hover { color: var(--grey-300); }

/* ========== FOOTER ========== */
.foot {
  background: var(--paper);
  padding: 60px var(--pad-x);
  border-top: 1px solid var(--grey-100);
}
.foot__inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.foot__mark {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.foot__line {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 12px;
}
.foot__fine {
  font-size: 11px;
  color: var(--grey-300);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .listings__grid,
  .team__grid { grid-template-columns: 1fr 1fr; }
  .bio { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr 1fr; }
  .cta-card:nth-child(2) { border-right: 0; }
  .cta-card { border-bottom: 1px solid var(--grey-100); }
  .contact__form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .listings__grid,
  .team__grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-card { border-right: 0; }
  .hero__content { padding-bottom: 80px; }
  .hero__scroll { display: none; }
  .contact__direct { gap: 20px; flex-direction: column; }
}
