/* ============================================================
   SOLENNE Nº4 — Marseille corniche
   One typeface (Sora 600), uppercase, B&W canvas, clay-bronze accent.
   Zero radius, zero shadow, zero gradient. Discipline is the design.
   ============================================================ */

/* ---- Sora, self-hosted ---- */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sora-400.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sora-600.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/sora-700.woff2") format("woff2");
}

/* ---- Tokens ---- */
:root {
  --black: #000000;
  --white: #ffffff;
  --accent: #a0725b; /* clay-bronze, NOT gold */

  --muted-30: rgba(255, 255, 255, 0.30);
  --muted-40: rgba(255, 255, 255, 0.40);
  --hairline-dk: rgba(0, 0, 0, 0.10);

  --header-h: 130px;
  --gutter: clamp(20px, 4vw, 64px);

  /* Type scale — base px from the reference, fluid via clamp */
  --fs-caption: 12px;
  --fs-sub: clamp(14px, 1.3vw, 18px);
  --fs-title: clamp(22px, 3.2vw, 30px);
  --fs-title-lg: clamp(32px, 5.6vw, 48px);
  --fs-display: clamp(42px, 8.5vw, 70px);

  --track-caption: 0.36px;
  --ease-reveal: cubic-bezier(0.25, 0.10, 0.35, 1);
  --ease-hover: cubic-bezier(0.7, 0, 0.3, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0; /* enforce: nothing is rounded */
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis owns scrolling */
}

body {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 600;
  font-size: var(--fs-caption);
  line-height: 16px;
  letter-spacing: var(--track-caption);
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* ---- Focus: accent ring, no rounding ---- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Section theming ---- */
.ui-dark {
  background: var(--black);
  color: var(--white);
}
.ui-light {
  background: var(--white);
  color: var(--black);
}

/* bare uppercase link — text-roll on hover, color stays static */
.link {
  display: inline-block;
  font-size: var(--fs-caption);
  letter-spacing: var(--track-caption);
  color: inherit;
}
.link--accent {
  color: var(--accent);
}

/* ---- TEXT-ROLL hover (nav links, CTAs, text buttons) ----
   Container clips to one line; original rolls up and out as the
   clone rolls up into place. Color never changes, only transform. */
.roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.roll__line {
  display: block;
  transition: transform 0.4s var(--ease-hover); /* cubic-bezier(0.7,0,0.3,1) */
}
.roll__line--clone {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}
.link:hover .roll__line,
.link:focus-visible .roll__line,
.menu__list a:hover .roll__line,
.menu__list a:focus-visible .roll__line {
  transform: translateY(-100%);
}
.link:hover .roll__line--clone,
.link:focus-visible .roll__line--clone,
.menu__list a:hover .roll__line--clone,
.menu__list a:focus-visible .roll__line--clone {
  transform: translateY(0);
}

.eyebrow {
  font-size: var(--fs-caption);
  letter-spacing: 0.18em;
  color: var(--accent);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--white);
  background: transparent;
  /* transparent, never a solid bar; difference keeps it legible over
     both the dark sections and the light ones (white-on-white otherwise) */
  mix-blend-mode: difference;
  transition: background-color 0.8s var(--ease-hover);
  pointer-events: none;
}
.header > * {
  pointer-events: auto;
}

.logo {
  display: block;
  color: var(--white);
}
.logo svg {
  height: 22px;
  width: auto;
}

.header__right {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}

/* two-line hamburger (deliberately two, not three) */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 18px;
  padding: 0;
}
.burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-hover), opacity 0.3s var(--ease-hover);
}
body.menu-open .burger span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
body.menu-open .burger span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ---- Full-screen menu overlay ---- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--gutter) var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-hover), visibility 0s linear 0.6s;
}
body.menu-open .menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease-hover);
}
.menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2vw, 20px);
}
.menu__list a {
  display: inline-block;
  font-size: var(--fs-title-lg);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.menu__foot {
  margin-top: clamp(28px, 6vh, 64px);
  display: flex;
  gap: 28px;
  color: var(--muted-40);
}

/* ============================================================
   WORDMARK (one SVG, reused at every scale)
   ============================================================ */
.wordmark {
  color: var(--accent);
}
.wordmark svg {
  width: 100%;
  height: auto;
}

/* ============================================================
   HERO  — sticky pin, content scrolls over (reveal-from-under)
   ============================================================ */
main {
  position: relative;
}

.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  background: var(--black);
  overflow: clip;
}

.hero__split {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero__panel {
  position: relative;
}
.hero__media {
  position: relative;
  overflow: clip;
}
.hero__media img {
  position: absolute;
  inset: -16% 0 0 0;
  width: 100%;
  height: 132%;
  object-fit: cover;
  filter: grayscale(1);
  will-change: transform;
}

.hero__headline {
  position: absolute;
  top: var(--header-h);
  left: var(--gutter);
  max-width: 18ch;
}
.hero__headline h1 {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

/* giant wordmark across the bottom, full viewport width */
.hero__wordmark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(20px, 4vh, 56px);
  z-index: 3;
  padding: 0 var(--gutter);
  pointer-events: none;
}

.scrollcue {
  position: absolute;
  bottom: clamp(170px, 22vh, 260px);
  right: var(--gutter);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted-40);
}
.scrollcue__arrow {
  width: 1px;
  height: 34px;
  background: var(--muted-40);
  position: relative;
  will-change: transform;
}
.scrollcue__arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted-40);
  border-bottom: 1px solid var(--muted-40);
  transform: translateX(-50%) rotate(45deg);
}

/* content that scrolls up over the pinned hero */
.flow {
  position: relative;
  z-index: 1;
}

/* ============================================================
   GENERIC SECTION + SPLIT
   ============================================================ */
.section {
  padding: clamp(64px, 12vh, 140px) var(--gutter);
}
.section__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(32px, 6vh, 72px);
  max-width: 60ch;
}
.section__title {
  font-size: var(--fs-title-lg);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.lede {
  font-size: var(--fs-caption);
  line-height: 1.7;
  letter-spacing: var(--track-caption);
  max-width: 46ch;
  color: inherit;
}
.ui-dark .lede {
  color: var(--muted-40);
}

/* 50/50 split, alternating sides */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}
.split__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 4vh, 40px);
  padding: clamp(64px, 10vh, 120px) var(--gutter);
}
.split__panel .actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.split__media {
  position: relative;
  overflow: clip;
  min-height: 60svh;
}
.split--rev .split__media {
  order: -1;
}

/* parallax image — clip box, baseline offset, ~150px travel */
.media {
  position: relative;
  overflow: clip;
  width: 100%;
  height: 100%;
}
.media img {
  position: absolute;
  inset: -16% 0 0 0;
  width: 100%;
  height: 132%;
  object-fit: cover;
  filter: grayscale(1);
  will-change: transform;
}

/* ============================================================
   STAT / NUMBER TREATMENT — raw on image, bottom-left, no box
   ============================================================ */
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat__num {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.stat__label {
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  color: var(--muted-40);
}
.stat--on-photo {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(24px, 4vh, 48px);
  z-index: 2;
  color: var(--white);
}
.stat--on-photo .stat__label {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   LOCATION — tags + image cluster
   ============================================================ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 28px 0 48px;
}
.tags li {
  list-style: none;
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  color: var(--accent);
}
.imgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(8px, 1vw, 16px);
}
.imgrid .media {
  height: clamp(180px, 28vh, 360px);
}
.imgrid .c4 { grid-column: span 4; }
.imgrid .c6 { grid-column: span 6; }
.imgrid .c8 { grid-column: span 8; }
.imgrid .tall { height: clamp(280px, 48vh, 560px); }

/* ============================================================
   PANORAMA — deliberate understatement, tiny quote
   ============================================================ */
.panorama {
  min-height: 86svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
}
.panorama p {
  font-size: var(--fs-caption);
  letter-spacing: 0.2em;
  color: var(--muted-40);
  max-width: 30ch;
}

/* ============================================================
   GALLERY — fraction counter
   ============================================================ */
.gallery__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 4vh, 48px);
}
.frac {
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
}
.frac b {
  font-weight: 600;
  color: var(--accent);
}
.frac span {
  color: var(--muted-30);
}
.gallery__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 30vw, 440px);
  gap: clamp(8px, 1vw, 16px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery__strip::-webkit-scrollbar { display: none; }
.gallery__strip .media {
  height: clamp(280px, 56vh, 620px);
  scroll-snap-align: start;
}

/* ============================================================
   DAILY SCHEDULE — timeline
   ============================================================ */
.schedule {
  display: grid;
  gap: 0;
  max-width: 70ch;
}
.schedule li {
  list-style: none;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(16px, 4vw, 56px);
  padding: clamp(18px, 3vh, 30px) 0;
  border-top: 1px solid var(--muted-30);
}
.schedule li:last-child { border-bottom: 1px solid var(--muted-30); }
.schedule time {
  color: var(--accent);
  font-size: var(--fs-sub);
}
.schedule p {
  font-size: var(--fs-caption);
  line-height: 1.7;
  color: var(--muted-40);
}

/* ============================================================
   PINNED HORIZONTAL SLIDER — amenities
   ============================================================ */
.amen {
  position: relative;
  height: 400svh; /* 4 slides of travel */
}
.amen__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
}
.amen__head {
  position: absolute;
  top: var(--header-h);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  color: var(--white);
  mix-blend-mode: difference; /* auto-inverts against the photo behind, like the header logo */
}
.amen__head h2 {
  font-size: var(--fs-title);
  max-width: 16ch;
  line-height: 1.1;
  color: var(--white);
}
.amen__head .frac span {
  color: var(--white); /* solid white so difference inverts it cleanly */
}
.amen__track {
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
}
.amen__slide {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: clip;
}
.amen__slide .stat--on-photo {
  bottom: clamp(40px, 8vh, 96px);
}

/* ============================================================
   COUNTER DECK — advantages / infrastructure / services
   ============================================================ */
.deck__stage {
  position: relative;
  height: clamp(320px, 64svh, 640px);
  overflow: clip;
}
.deck__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.deck__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.deck__slide .media {
  position: absolute;
  inset: 0;
}
.deck__caption {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(24px, 4vh, 48px);
  z-index: 2;
  color: var(--white);
  max-width: 30ch;
}
.deck__caption h3 {
  font-size: var(--fs-sub);
  margin-bottom: 8px;
}
.deck__caption p {
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--muted-40);
}
.deck__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
}

/* ============================================================
   APARTMENTS — filter tabs + 70px sizes
   ============================================================ */
.apts__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: clamp(28px, 5vh, 56px);
}
.apts__tab {
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  padding: 0;
  color: var(--muted-40);
  transition: color 0.4s var(--ease-hover);
}
.ui-light .apts__tab { color: rgba(0, 0, 0, 0.4); }
.apts__tab.is-active,
.apts__tab:hover {
  color: var(--accent);
}
.apts__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.apts__info {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vh, 44px);
  padding-bottom: 8px;
}
.apts__size .stat__num { letter-spacing: -0.02em; }
.apts__terms {
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  color: var(--accent);
}
.apts__media {
  position: relative;
  overflow: clip;
  height: clamp(320px, 60svh, 640px);
}

/* ============================================================
   ENQUIRY / CONTACT
   ============================================================ */
.contact__intro {
  gap: clamp(18px, 3.5vh, 34px);
}
.contact__formwrap {
  justify-content: flex-start;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(10px, 2vh, 24px);
}
.contact__addr {
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  color: rgba(0, 0, 0, 0.5);
}

.cform {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3.2vh, 32px);
  width: 100%;
  max-width: 560px;
}
.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.5vw, 32px);
}

/* fields: bare underline inputs, no boxes */
.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.field label,
.choices legend {
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  color: rgba(0, 0, 0, 0.5);
  padding: 0;
}
.field__opt {
  margin-left: 8px;
  color: rgba(0, 0, 0, 0.3);
}
.field__control {
  position: relative;
}
/* accent focus line wipes in over the resting hairline */
.field__control::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-hover);
  pointer-events: none;
}
.field__control:focus-within::after {
  transform: scaleX(1);
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-dk);
  padding: 11px 0;
  outline: none;
}
.field textarea {
  resize: none;
}
.field__error {
  font-size: var(--fs-caption);
  letter-spacing: 0.04em;
  color: var(--accent);
}
.field.is-error .field__control::after {
  transform: scaleX(1);
}
.field.is-error input {
  border-bottom-color: var(--accent);
}

/* selectable choices (residence / intent) */
.choices__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 6px;
}
.choice {
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.4s var(--ease-hover), border-color 0.4s var(--ease-hover);
}
.choice:hover {
  color: var(--accent);
}
.choice.is-selected {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.choice:active {
  transform: translateY(1px);
}

.cform__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  border-top: 1px solid var(--hairline-dk);
  padding-top: clamp(18px, 3vh, 28px);
}
.cform__consent {
  font-size: var(--fs-caption);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.4);
  max-width: 34ch;
}
.cform__submit {
  font-size: var(--fs-sub);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.cform__status:not(:empty) {
  font-size: var(--fs-caption);
  letter-spacing: 0.1em;
  color: var(--accent);
}
.contact__success {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.5vh, 24px);
}

@media (max-width: 768px) {
  .cform { max-width: none; }
  .cform__row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: clamp(48px, 10vh, 120px) var(--gutter) clamp(28px, 5vh, 48px);
}
.footer__mark {
  margin-bottom: clamp(40px, 8vh, 96px);
}
.footer__row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted-40);
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
}

/* ============================================================
   SPLIT-TEXT REVEAL primitives
   ============================================================ */
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em; /* descender clearance for any g/y/p */
}
.word {
  display: inline-block;
  transform: translateY(10svh);
  will-change: transform;
}
.reveal-fade {
  opacity: 0;
  will-change: opacity, transform;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .imgrid .c4 { grid-column: span 6; }
  .imgrid .c8 { grid-column: span 12; }
}

@media (max-width: 768px) {
  :root { --header-h: 84px; }

  .hero__split,
  .split,
  .apts__body {
    grid-template-columns: 1fr;
  }
  .hero__split { grid-template-rows: 1fr 1fr; }
  .hero__headline { max-width: 24ch; }

  .split__media { min-height: 56svh; order: -1; }
  .split--rev .split__media { order: -1; }

  /* horizontal slider falls back to vertical stack */
  .amen { height: auto; }
  .amen__pin { position: static; height: auto; overflow: visible; }
  .amen__head { position: static; flex-direction: column; padding: 0 var(--gutter); margin-bottom: 24px; }
  .amen__track { flex-direction: column; width: auto; transform: none !important; }
  .amen__slide { width: 100%; height: auto; min-height: 64svh; }

  .schedule li { grid-template-columns: 64px 1fr; }
  .footer__row { flex-direction: column; gap: 10px; }
}

@media (max-width: 600px) {
  /* logo + burger only; the CTA lives inside the menu overlay */
  .header__right .link { display: none; }
}

/* ============================================================
   REDUCED MOTION — kill smooth scroll/parallax/pin/reveal, show final state
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero { position: relative; overflow: visible; }
  .hero__media img,
  .media img { position: static; inset: auto; width: 100%; height: 100%; transform: none !important; }
  .hero__media, .split__media, .media { min-height: 56svh; }

  .amen { height: auto; }
  .amen__pin { position: static; height: auto; overflow: visible; }
  .amen__track { flex-direction: column; width: auto; transform: none !important; }
  .amen__slide { width: 100%; height: auto; min-height: 64svh; }
  .amen__head { position: static; }

  .word { transform: none !important; }
  .reveal-fade { opacity: 1 !important; }
  .scrollcue__arrow { animation: none !important; }
  .roll__line { transition: none !important; } /* roll swaps instantly */
  * { scroll-behavior: auto !important; }
}
