:root {
  --navy-950: #050b11;
  --navy-900: #071018;
  --navy-800: #0a1520;
  --navy-700: #0f1f2e;
  --blue: #8fa8b8;
  --blue-dim: rgba(143, 168, 184, 0.48);
  --cream: #fcf4e7;
  --cream-soft: rgba(252, 244, 231, 0.72);
  --line: rgba(143, 168, 184, 0.22);
  --warm: #ddc495;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;
  --page-pad: clamp(1.25rem, 5vw, 4.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  margin: 0;
  color: var(--cream);
  background: var(--navy-900);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: var(--navy-900);
  background: var(--cream);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-head {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem var(--page-pad);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-style: italic;
  line-height: 1;
}

.brand__project,
.site-head__place {
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-head__place {
  transition: color 300ms ease;
}

.site-head__place:hover,
.site-head__place:focus-visible {
  color: var(--cream);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 7rem);
  overflow: hidden;
  padding: clamp(8rem, 17vh, 11rem) var(--page-pad) clamp(5rem, 10vh, 8rem);
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.2), rgba(7, 16, 24, 0.78)),
    radial-gradient(circle at 20% 35%, #152d40 0%, transparent 42%),
    linear-gradient(160deg, var(--navy-700), var(--navy-950) 76%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.hero__atmosphere,
.hero__glow,
.hero__horizon {
  position: absolute;
  z-index: -2;
  pointer-events: none;
}

.hero__atmosphere {
  inset: 0;
}

.hero__glow {
  border-radius: 50%;
  filter: blur(80px);
}

.hero__glow--one {
  width: 30rem;
  height: 30rem;
  left: -10rem;
  top: 20%;
  background: rgba(74, 111, 134, 0.18);
  animation: breathe 12s ease-in-out infinite alternate;
}

.hero__glow--two {
  width: 24rem;
  height: 24rem;
  right: -8rem;
  bottom: -5rem;
  background: rgba(221, 196, 149, 0.09);
  animation: breathe 15s ease-in-out 2s infinite alternate-reverse;
}

.hero__horizon {
  right: -5%;
  bottom: 10%;
  width: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-dim), transparent);
  box-shadow: 0 18px 40px rgba(143, 168, 184, 0.13);
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 48rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 1.9rem;
  height: 1px;
  background: currentColor;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.8rem;
  font-size: clamp(3.8rem, 7.6vw, 7.7rem);
  line-height: 0.86;
  letter-spacing: -0.038em;
}

h1 em,
h2 em {
  color: var(--blue);
  font-weight: 400;
}

.hero__intro {
  max-width: 34rem;
  margin-bottom: 2.3rem;
  color: var(--cream-soft);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.text-link {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--blue-dim);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: border-color 250ms ease, color 250ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
}

.residences {
  position: relative;
  width: min(100%, 34rem);
  justify-self: end;
  perspective: 70rem;
}

.residences__label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  color: var(--blue);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.residences__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  transform: rotateY(-8deg) rotateX(2deg);
  transform-origin: center right;
  box-shadow: 2rem 3rem 5rem rgba(0, 0, 0, 0.35);
}

.residence {
  position: relative;
  aspect-ratio: 0.76;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(143, 168, 184, 0.12), rgba(5, 11, 17, 0.74));
}

.residence::before,
.residence::after {
  content: "";
  position: absolute;
}

.residence::before {
  inset: 16% 17%;
  border: 1px solid rgba(143, 168, 184, 0.22);
  background: linear-gradient(90deg, transparent 48%, rgba(143, 168, 184, 0.18) 49%, rgba(143, 168, 184, 0.18) 51%, transparent 52%);
}

.residence::after {
  width: 44%;
  height: 1px;
  left: 28%;
  bottom: 13%;
  background: var(--blue-dim);
}

.residence--lit {
  background:
    linear-gradient(150deg, rgba(221, 196, 149, 0.23), rgba(7, 16, 24, 0.58)),
    var(--navy-700);
}

.residence--lit::before {
  border-color: rgba(221, 196, 149, 0.36);
  box-shadow: inset 0 0 2.2rem rgba(221, 196, 149, 0.12);
}

.residence--quiet {
  background: rgba(5, 11, 17, 0.68);
}

.residences__reflection {
  display: block;
  width: 96%;
  height: 4rem;
  margin: 0 auto;
  opacity: 0.24;
  filter: blur(12px);
  background: repeating-linear-gradient(90deg, transparent 0 8%, rgba(221, 196, 149, 0.24) 9% 10%, transparent 11% 18%);
  transform: perspective(12rem) rotateX(62deg) scaleY(1.4);
  transform-origin: top;
}

.hero__count {
  position: absolute;
  right: var(--page-pad);
  bottom: 1.5rem;
  margin: 0;
  color: var(--blue-dim);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
}

.concept {
  display: grid;
  grid-template-columns: 0.25fr 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 7rem);
  padding: clamp(7rem, 14vw, 13rem) var(--page-pad);
  color: var(--navy-900);
  background: var(--cream);
}

.section-number,
.principle__number {
  color: rgba(7, 16, 24, 0.42);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.concept .eyebrow {
  color: #587284;
}

.concept h2,
.place h2,
.next h2 {
  margin-bottom: 0;
  font-size: clamp(3.1rem, 5.8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.concept__body {
  align-self: end;
  padding-top: 4rem;
  color: rgba(7, 16, 24, 0.7);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.concept__body p:last-child {
  margin-bottom: 0;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(7, 16, 24, 0.15);
  color: var(--navy-900);
  background: var(--cream);
}

.principle {
  min-height: 25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 4vw, 4rem) var(--page-pad);
  border-right: 1px solid rgba(7, 16, 24, 0.15);
}

.principle:last-child {
  border-right: 0;
}

.principle__number {
  margin-bottom: auto;
}

.principle h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 3.3vw, 3.6rem);
  line-height: 1;
}

.principle p {
  max-width: 22rem;
  margin-bottom: 0;
  color: rgba(7, 16, 24, 0.62);
}

.place {
  min-height: 46rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: var(--navy-800);
}

.place__map {
  position: relative;
  min-height: 40rem;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(112deg, transparent 49%, rgba(143, 168, 184, 0.08) 50%, transparent 51%),
    repeating-linear-gradient(0deg, transparent 0 4.95rem, rgba(143, 168, 184, 0.1) 5rem),
    repeating-linear-gradient(90deg, transparent 0 4.95rem, rgba(143, 168, 184, 0.1) 5rem),
    radial-gradient(circle at 62% 46%, #172f41, var(--navy-900) 58%);
}

.place__shore {
  position: absolute;
  width: 130%;
  height: 60%;
  top: 14%;
  left: -50%;
  border: 1px solid rgba(143, 168, 184, 0.35);
  border-radius: 45% 55% 58% 42%;
  transform: rotate(-24deg);
  box-shadow:
    0 0 0 1.6rem rgba(143, 168, 184, 0.02),
    0 0 0 3.2rem rgba(143, 168, 184, 0.015);
}

.place__marker {
  position: absolute;
  top: 46%;
  left: 62%;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 0.6rem rgba(252, 244, 231, 0.08);
  animation: marker-pulse 2.8s ease-out infinite;
}

.place__coordinates {
  position: absolute;
  left: var(--page-pad);
  bottom: 2rem;
  color: var(--blue);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
}

.place__copy {
  align-self: center;
  padding: clamp(5rem, 10vw, 10rem) var(--page-pad);
}

.place__copy p:last-child {
  max-width: 26rem;
  margin: 2rem 0 0;
  color: var(--cream-soft);
  font-size: 1.08rem;
}

.next {
  position: relative;
  padding: clamp(7rem, 14vw, 13rem) var(--page-pad);
  overflow: hidden;
  color: var(--navy-900);
  background: var(--cream);
}

.next::after {
  content: "12";
  position: absolute;
  right: -0.02em;
  bottom: -0.28em;
  color: rgba(7, 16, 24, 0.045);
  font-family: var(--font-display);
  font-size: min(48vw, 42rem);
  line-height: 1;
}

.next .eyebrow {
  color: #587284;
}

.next h2 {
  position: relative;
  z-index: 1;
  max-width: 10ch;
}

.button {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(7, 16, 24, 0.36);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 250ms ease, border-color 250ms ease;
}

.button:hover,
.button:focus-visible {
  color: #587284;
  border-color: #587284;
}

.site-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem var(--page-pad);
  border-top: 1px solid var(--line);
  background: var(--navy-950);
}

.brand--small .brand__name {
  font-size: 1.35rem;
}

.site-foot p,
.site-foot__dco {
  margin: 0;
  color: var(--blue);
  font-size: 0.58rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.site-foot__dco {
  justify-self: end;
  transition: color 250ms ease;
}

.site-foot__dco:hover,
.site-foot__dco:focus-visible {
  color: var(--cream);
}

@keyframes breathe {
  to { transform: translate3d(2rem, -1rem, 0) scale(1.12); }
}

@keyframes marker-pulse {
  0% { box-shadow: 0 0 0 0 rgba(252, 244, 231, 0.22); }
  70%, 100% { box-shadow: 0 0 0 1.2rem rgba(252, 244, 231, 0); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 8.5rem;
  }

  .hero__copy {
    padding-top: 2rem;
  }

  .residences {
    width: min(100%, 32rem);
    justify-self: center;
  }

  .concept {
    grid-template-columns: 1fr;
  }

  .section-number {
    display: none;
  }

  .concept__body {
    max-width: 38rem;
    padding-top: 1rem;
  }

  .principle {
    min-height: 21rem;
  }

  .place {
    grid-template-columns: 1fr;
  }

  .place__map {
    min-height: 32rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .site-head__place {
    max-width: 8rem;
    text-align: right;
    line-height: 1.45;
  }

  .hero {
    min-height: auto;
    padding-bottom: 5rem;
  }

  h1 {
    font-size: clamp(3.55rem, 17vw, 5.5rem);
  }

  .residences__grid {
    transform: none;
  }

  .residences__label {
    flex-direction: column;
    gap: 0.25rem;
  }

  .concept h2,
  .place h2,
  .next h2 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: 19rem;
    border-right: 0;
    border-bottom: 1px solid rgba(7, 16, 24, 0.15);
  }

  .place__map {
    min-height: 25rem;
  }

  .site-foot {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-foot__dco {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__glow,
  .place__marker {
    animation: none;
  }
}

/* —— Casa Chernes family language —— */

.brand__mark {
  width: clamp(5.7rem, 11vw, 7.5rem);
  height: auto;
}

.brand--small .brand__mark {
  width: 5.8rem;
}

.hero__caustics {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.58;
  pointer-events: none;
}

.hero__atmosphere {
  z-index: 1;
  background: linear-gradient(90deg, rgba(7, 16, 24, 0.12), rgba(7, 16, 24, 0.72));
}

.hero::after {
  z-index: 1;
}

.hero__copy,
.residences,
.hero__count {
  z-index: 3;
}

.program {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(28rem, 1.15fr);
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(7rem, 14vw, 13rem) var(--page-pad);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 18%, rgba(143, 168, 184, 0.17), transparent 34%),
    var(--navy-800);
}

.program__head {
  align-self: start;
}

.program h2,
.model h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 5.8vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.program h2 em {
  color: var(--blue);
  font-weight: 400;
}

.program__head > p:last-child {
  max-width: 34rem;
  margin: 2rem 0 0;
  color: var(--cream-soft);
  font-size: 1.06rem;
}

.program__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: floors;
  border-top: 1px solid var(--line);
}

.program__list li {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.program__floor,
.program__list li > span:last-child {
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.program__list strong {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 400;
}

.program__list li > span:last-child {
  text-align: right;
}

.program__note {
  grid-column: 2;
  margin: -3rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 0.82rem;
  line-height: 1.65;
}

.model {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(7rem, 14vw, 13rem) var(--page-pad);
  color: var(--navy-900);
  background: var(--cream);
}

.model .eyebrow {
  color: #587284;
}

.model h2 em {
  color: #587284;
  font-weight: 400;
}

.model__grid {
  display: grid;
  align-self: end;
}

.model__grid article {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  column-gap: 1.15rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(7, 16, 24, 0.18);
}

.model__grid article:last-child {
  border-bottom: 1px solid rgba(7, 16, 24, 0.18);
}

.model__grid article > span {
  grid-row: 1 / 3;
  color: rgba(7, 16, 24, 0.42);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.model__grid h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1;
}

.model__grid p {
  margin: 0;
  color: rgba(7, 16, 24, 0.66);
}

.next__disclaimer {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 3rem 0 0;
  color: rgba(7, 16, 24, 0.5);
  font-size: 0.78rem;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .program,
  .model {
    grid-template-columns: 1fr;
  }

  .program__note {
    grid-column: 1;
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .program__list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .program__list li > span:last-child {
    text-align: left;
  }
}
