/* Cityloft — designer lofts in Sudirman, Jakarta */

:root {
  --paper: #f6f3ee;
  --paper-2: #ece6dc;
  --ink: #1d1b19;
  --ink-soft: #4a4540;
  --muted: #8a8076;
  --line: rgba(29, 27, 25, 0.14);
  --night: #191715;
  --night-2: #24211e;
  --on-night: #f1ece4;
  --on-night-muted: #b3aa9f;
  --accent: #a3392b;
  --white: #ffffff;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section h2 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 24px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 400; letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #3a3632; }
.btn-outline { border: 1px solid currentColor; color: inherit; }
.btn-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.link-line {
  font-size: 15px; text-decoration: none; padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.3s var(--ease);
}
.link-line:hover { opacity: 0.7; }
.btn svg, .link-line svg { width: 16px; height: 16px; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  color: var(--white);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header.is-solid {
  background: rgba(246, 243, 238, 0.96);
  color: var(--ink);
  padding-top: 14px; padding-bottom: 14px;
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(8px);
}
.page-plain .header { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: var(--serif); font-size: 27px; letter-spacing: 0.32em; font-weight: 500; }
.logo-sub { font-size: 10px; letter-spacing: 0.5em; margin-top: 6px; opacity: 0.85; }
.header-right { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; gap: 2px; font-size: 13px; letter-spacing: 0.12em; }
.lang a, .lang span { padding: 6px 8px; text-decoration: none; }
.lang span { border-bottom: 1px solid currentColor; }
.lang a { opacity: 0.65; }
.lang a:hover { opacity: 1; }
.menu-btn {
  display: flex; align-items: center; gap: 12px;
  background: none; border: 0; color: inherit; cursor: pointer;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 0;
}
.menu-btn i { display: block; width: 24px; height: 1px; background: currentColor; position: relative; }
.menu-btn i::after { content: ""; position: absolute; left: 0; top: 6px; width: 24px; height: 1px; background: currentColor; }

/* Overlay menu */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--night); color: var(--on-night);
  display: flex; flex-direction: column;
  padding: 22px var(--gutter) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-close { background: none; border: 0; color: inherit; font: inherit; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; padding: 6px 0; }
.menu nav { margin: auto 0; display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-family: var(--serif); font-size: clamp(36px, 7vw, 64px); text-decoration: none; line-height: 1.15; transition: color 0.3s var(--ease); }
.menu nav a:hover { color: var(--on-night-muted); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 14px; color: var(--on-night-muted); }
.menu-foot a { text-decoration: none; }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: var(--white); background: var(--night); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-slide.is-active img { animation: drift 9s linear forwards; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.0); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 75%),
    linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.08) 30%, rgba(0,0,0,0.12) 55%, rgba(0,0,0,0.62) 100%);
}
.hero h1, .hero p, .loft-hero h1 { text-shadow: 0 1px 24px rgba(0,0,0,0.25); }
.hero-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(70px, 12vh, 120px); }
.hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero h1 { font-size: clamp(46px, 8vw, 96px); max-width: 900px; margin-bottom: 22px; }
.hero p { font-size: clamp(17px, 1.8vw, 19px); max-width: 560px; color: rgba(255,255,255,0.9); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero-meta {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hero-caption { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 34px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.hero-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: rgba(255,255,255,0.35); }
.hero-dots button::after { content: ""; position: absolute; left: 0; top: 6px; height: 2px; width: 0; background: var(--white); }
.hero-dots button.is-active::after { animation: fill 7s linear forwards; }
@keyframes fill { to { width: 100%; } }

/* Facts strip */
.facts { border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.facts li + li { border-left: 1px solid var(--line); }

/* Lofts */
.lofts-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 7vw, 80px); }
.lofts-head .lead { margin: 0; }
.loft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.loft-card { text-decoration: none; display: block; }
.loft-card figure { margin: 0 0 26px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.loft-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.loft-card:hover img { transform: scale(1.04); }
.loft-card h3 { font-size: clamp(34px, 4vw, 46px); margin-bottom: 10px; }
.loft-card p { color: var(--ink-soft); max-width: 480px; }
.loft-tags { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.loft-tags li::before { content: "·"; margin-right: 18px; }
.loft-tags li:first-child::before { content: none; }

/* Neighbourhood (dark) */
.dark { background: var(--night); color: var(--on-night); }
.dark .eyebrow { color: var(--on-night-muted); }
.dark .lead { color: var(--on-night-muted); }
.hood { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.hood-list { list-style: none; margin: 40px 0 0; padding: 0; }
.hood-list li { padding: 22px 0; border-top: 1px solid rgba(241, 236, 228, 0.16); display: grid; grid-template-columns: 170px 1fr; gap: 20px; }
.hood-list strong { font-weight: 400; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.hood-list span { color: var(--on-night-muted); }
.map { position: relative; aspect-ratio: 4 / 5; background: var(--night-2); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(0.9); }
.map-label { position: absolute; left: 16px; bottom: 16px; background: var(--paper); color: var(--ink); padding: 10px 14px; font-size: 13px; line-height: 1.4; max-width: 80%; }

/* Approach */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.approach figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.approach figure img { width: 100%; height: 100%; object-fit: cover; }
.quote { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.3; margin: 34px 0 0; padding-top: 30px; border-top: 1px solid var(--line); }

/* Rates */
.rates { background: var(--paper-2); }
.rates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.price { font-family: var(--serif); font-size: clamp(44px, 6vw, 76px); line-height: 1.05; }
.price small { display: block; font-family: var(--sans); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; }
.ticks li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.ticks li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 11px; border-radius: 50%; background: var(--accent); }
.note { font-size: 15px; color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 90px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 27px); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-family: var(--sans); font-weight: 300; font-size: 26px; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-right: 40px; margin: -6px 0 26px; }

/* Contact */
.contact { position: relative; color: var(--white); overflow: hidden; background: var(--night); }
.contact > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.contact .wrap { position: relative; text-align: center; }
.contact .eyebrow { color: rgba(255,255,255,0.8); }
.contact h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.contact p { max-width: 560px; margin: 0 auto 36px; color: rgba(255,255,255,0.88); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 40px; }
.contact .btn-outline { color: var(--white); }
.contact .btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.contact-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; font-size: 15px; color: rgba(255,255,255,0.85); }
.contact-lines a { text-decoration: none; }

/* Footer */
.footer { background: var(--night); color: var(--on-night-muted); padding: 60px 0 40px; font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(241, 236, 228, 0.12); }
.footer .logo { color: var(--on-night); }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-night); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 26px; }

/* Loft page */
.loft-hero { position: relative; height: 82vh; height: 82svh; min-height: 480px; color: var(--white); overflow: hidden; background: var(--night); }
.loft-hero img { width: 100%; height: 100%; object-fit: cover; }
.loft-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.6) 100%); }
.loft-hero .hero-content { bottom: clamp(50px, 9vh, 90px); }
.loft-hero .eyebrow { color: rgba(255,255,255,0.85); }
.loft-hero h1 { font-size: clamp(56px, 10vw, 120px); }
.loft-intro { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(40px, 6vw, 90px); }
.loft-intro .lead { color: var(--ink); font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.3; max-width: none; margin-bottom: 28px; }
.loft-intro aside { border-top: 1px solid var(--ink); padding-top: 26px; }
.loft-intro aside .price { font-size: clamp(40px, 5vw, 56px); }
.loft-intro aside .price small { margin: 10px 0 24px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.features li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery button { padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery.has-feature button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.other-loft { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 5vw, 70px); }
.other-loft figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.other-loft img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(18, 16, 14, 0.94); }
.lightbox img { position: absolute; inset: 0; margin: auto; max-width: 92vw; max-height: 84vh; width: auto; height: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; font-family: var(--sans); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; padding: 14px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 34px !important; letter-spacing: 0 !important; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.7); font-size: 13px; letter-spacing: 0.2em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide.is-active img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .lofts-head, .hood, .approach, .rates-grid, .faq-grid, .loft-intro, .other-loft { grid-template-columns: 1fr; }
  .facts ul { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .facts li:nth-child(3) { border-left: 0; }
  .map { aspect-ratio: 4 / 3; }
  .approach figure { aspect-ratio: 3 / 2; order: -1; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery button, .gallery.has-feature button:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-right { gap: 14px; }
  .menu-btn span { display: none; }
  .logo-word { font-size: 22px; }
  .loft-grid { grid-template-columns: 1fr; gap: 56px; }
  .hood-list li { grid-template-columns: 1fr; gap: 4px; }
  .features { grid-template-columns: 1fr; }
  .hero-caption { display: none; }
  .hero-meta { justify-content: flex-start; }
  .facts li { font-size: 12px; letter-spacing: 0.12em; padding: 0 8px; }
}
