/* ============================================================
   DJ OTEO — Lesmana design system reproduction
   Dark editorial luxury. Warm blacks, off-whites, gold accent.
   Tokens per Lesmana spec (rgb values used exactly).
   ============================================================ */

:root {
  /* Color tokens (Lesmana, exact) */
  --black:      rgb(18, 17, 13);
  --dark-grey:  rgb(40, 38, 35);
  --grey-1:     rgb(65, 62, 60);
  --grey-2:     rgb(111, 106, 104);
  --grey-3:     rgb(177, 168, 157);
  --grey-4:     rgb(221, 217, 209);
  --light-grey: rgb(238, 231, 219);
  --off-white:  rgb(249, 246, 237);
  --white:      #ffffff;
  --gold:       rgb(145, 123, 80);
  --gold-soft:  rgba(145, 123, 80, 0.14);
  --gold-line:  rgba(145, 123, 80, 0.28);
  --hairline:   rgba(221, 217, 209, 0.10);
  --hairline-2: rgba(221, 217, 209, 0.06);

  /* Type */
  --serif: "Times New Roman", Times, "Georgia", serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  "Geist Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;

  /* Rhythm */
  --pad-x: clamp(24px, 6vw, 120px);
  --section-y: clamp(80px, 12vw, 180px);
  --maxw: 1320px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Fonts (Geist via CDN, serif is Times system) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist:vf@latest/latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist-mono:vf@latest/latin-wght-normal.woff2") format("woff2");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--grey-3);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--gold); color: var(--black); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); position: relative; }

/* ---------- Type utility ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--off-white);
  line-height: 0.92;
  letter-spacing: -0.015em;
  font-size: clamp(64px, 15vw, 200px);
}
h1, .h1 { font-family: var(--serif); font-weight: 400; color: var(--white); line-height: 1.02; letter-spacing: -0.01em; font-size: clamp(40px, 6.4vw, 64px); }
h2, .h2 { font-family: var(--serif); font-weight: 400; color: var(--white); line-height: 1.06; letter-spacing: -0.01em; font-size: clamp(36px, 5vw, 48px); }
h3, .h3 { font-family: var(--serif); font-weight: 400; color: var(--white); line-height: 1.15; font-size: clamp(24px, 3vw, 32px); }
h4, .h4 { font-family: var(--serif); font-weight: 400; color: var(--off-white); line-height: 1.2; font-size: 24px; }
p { color: var(--grey-3); }
.body-s { font-size: 14px; color: var(--grey-2); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--grey-4); line-height: 1.55; }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.label::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
  display: inline-block;
}
.label.no-line::before { display: none; }

.stat-num {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  font-size: clamp(56px, 8vw, 80px);
  letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 16px 28px; border-radius: 2px;
  transition: all 0.45s var(--ease);
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--black); font-weight: 600; }
.btn-gold:hover { background: var(--off-white); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--gold-line); color: var(--off-white); }
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad-x);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(18, 17, 13, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding-top: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; opacity: 0.95; }
.brand .brand-word { font-family: var(--serif); font-size: 22px; letter-spacing: 0.28em; color: var(--off-white); font-weight: 400; padding-left: 2px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-3); transition: color 0.3s var(--ease); }
.nav a:hover { color: var(--off-white); }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 24px; height: 1.5px; background: var(--off-white); transition: 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: clamp(120px, 16vh, 180px); padding-bottom: clamp(64px, 8vw, 110px); }
/* Ambient background — kept subtle so the framed portrait is the anchor */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 30%; opacity: 0.20; filter: grayscale(0.55) contrast(1.02) brightness(0.85) blur(2px); transform: scale(1.12); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 82% 40%, rgba(145,123,80,0.12) 0%, transparent 58%),
    linear-gradient(180deg, rgba(18,17,13,0.86) 0%, rgba(18,17,13,0.72) 40%, rgba(18,17,13,0.9) 82%, var(--black) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-copy { min-width: 0; }
.hero .display { margin: 20px 0 28px; }
.hero-tagline { max-width: 540px; margin-bottom: 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* Framed portrait — the face is the point */
.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,0,0,0.4);
  background: var(--dark-grey);
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%;
  filter: contrast(1.05) saturate(1.05) brightness(1.0);
  transition: transform 1.4s var(--ease);
}
.hero:hover .hero-portrait img { transform: scale(1.03); }
.hero-portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(18,17,13,0.86) 100%);
}
.hero-portrait-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 28px; display: flex; flex-direction: column; gap: 4px;
}
.hero-portrait-cap .hp-name { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); color: var(--white); letter-spacing: -0.01em; }
.hero-portrait-cap .hp-role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

.hero-scroll { position: absolute; bottom: 32px; right: var(--pad-x); z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-2); display: flex; align-items: center; gap: 10px; }
.hero-scroll::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); }

/* ---------- Section head ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .label { margin-bottom: 22px; }
.section-head h2 { margin-bottom: 20px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .label { justify-content: center; }

/* ---------- Residencies grid ---------- */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.res-card {
  position: relative; overflow: hidden; background: var(--dark-grey);
  aspect-ratio: 3 / 4; display: block;
  border: 1px solid var(--hairline-2);
}
.res-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 1.1s var(--ease); filter: grayscale(0.3) brightness(0.72); }
.res-card:hover img { transform: scale(1.05); filter: grayscale(0) brightness(0.85); }
.res-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(18,17,13,0.9) 100%); }
.res-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px; }
.res-meta .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 14px; display: block; }
.res-meta h3 { color: var(--white); margin-bottom: 6px; }
.res-meta .nights { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-3); }

/* ---------- Why us / stats ---------- */
.why { border-top: 1px solid var(--hairline); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 72px); }
.stat { border-left: 1px solid var(--gold-line); padding-left: 28px; }
.stat .stat-num { display: block; margin-bottom: 12px; }
.stat .stat-num.small { font-size: clamp(28px, 4vw, 40px); }
.stat h4 { font-family: var(--serif); color: var(--off-white); font-size: 20px; margin-bottom: 8px; line-height: 1.2; }
.stat p { font-size: 14px; color: var(--grey-2); }

/* ---------- Accordion (services) ---------- */
.acc { border-top: 1px solid var(--hairline); }
.acc-item { border-bottom: 1px solid var(--hairline); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 44px) 0; text-align: left; transition: opacity 0.3s var(--ease); }
.acc-head:hover { opacity: 0.82; }
.acc-head .acc-left { display: flex; align-items: baseline; gap: clamp(18px, 3vw, 40px); }
.acc-head .acc-idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--gold); }
.acc-head h3 { color: var(--white); }
.acc-icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--gold); transition: transform 0.4s var(--ease); }
.acc-icon::before { top: 9.25px; left: 0; width: 20px; height: 1.5px; }
.acc-icon::after { left: 9.25px; top: 0; width: 1.5px; height: 20px; }
.acc-item.open .acc-icon::after { transform: scaleY(0); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.55s var(--ease); }
.acc-body-inner { padding: 0 0 clamp(28px, 4vw, 44px) clamp(30px, 6vw, 84px); max-width: 640px; }
.acc-body-inner p { color: var(--grey-3); margin-bottom: 16px; }
.acc-body-inner .price-tag { font-family: var(--serif); color: var(--gold); font-size: 28px; }

/* ---------- Process ---------- */
.process { border-top: 1px solid var(--hairline); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.step .step-num { font-family: var(--serif); font-size: clamp(40px, 5vw, 56px); color: var(--gold); line-height: 1; margin-bottom: 20px; opacity: 0.9; }
.step h4 { font-family: var(--serif); color: var(--white); font-size: 22px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--grey-2); }

/* ---------- Pricing / offerings ---------- */
.pricing { border-top: 1px solid var(--hairline); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  background: var(--dark-grey); border: 1px solid var(--hairline);
  padding: clamp(30px, 3.4vw, 46px); border-radius: 3px;
  display: flex; flex-direction: column; min-height: 400px;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), background 0.5s var(--ease);
}
.price-card:hover { border-color: var(--gold-line); transform: translateY(-4px); }
.price-card.featured { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(145,123,80,0.08), var(--dark-grey)); }
.price-card .pc-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.price-card h3 { color: var(--white); margin-bottom: 14px; }
.price-card .pc-price { font-family: var(--serif); font-size: clamp(44px, 6vw, 64px); color: var(--off-white); line-height: 1; margin-bottom: 6px; }
.price-card .pc-price .unit { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--grey-2); text-transform: uppercase; }
.price-card .pc-desc { color: var(--grey-3); font-size: 15px; margin-bottom: 28px; flex-grow: 1; }
.price-card .pc-desc ul { list-style: none; margin-top: 14px; }
.price-card .pc-desc li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 14px; color: var(--grey-3); }
.price-card .pc-desc li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.price-card .btn { width: 100%; justify-content: center; }

/* ---------- Rentals ---------- */
.rentals { border-top: 1px solid var(--hairline); }
.gear-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gear-card { background: var(--dark-grey); border: 1px solid var(--hairline); border-radius: 3px; overflow: hidden; transition: border-color 0.5s var(--ease), transform 0.5s var(--ease); }
.gear-card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.gear-card .gear-img { aspect-ratio: 4 / 3; background: rgb(28, 27, 23); display: flex; align-items: center; justify-content: center; padding: 22px; }
.gear-card .gear-img img { max-height: 100%; width: auto; object-fit: contain; }
.gear-card .gear-meta { padding: 16px 20px 20px; border-top: 1px solid var(--hairline-2); }
.gear-card .gear-meta .gear-name { font-family: var(--serif); font-size: 18px; color: var(--off-white); line-height: 1.2; }
.gear-card .gear-meta .gear-qty { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; margin-top: 6px; display: block; }
.rentals-cta { margin-top: 48px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ---------- About preview ---------- */
.about { border-top: 1px solid var(--hairline); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2); }
.about-copy .label { margin-bottom: 22px; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { margin-bottom: 18px; color: var(--grey-3); }
.about-sound { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.about-sound .chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-line); padding: 8px 16px; border-radius: 2px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--hairline); }
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq-list .acc-item:first-child { border-top: 1px solid var(--hairline); }
.faq-list .acc-head { padding: 26px 0; }
.faq-list .acc-head h4 { font-family: var(--serif); color: var(--off-white); font-size: 20px; }
.faq-list .acc-body-inner { padding: 0 0 26px 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding-top: clamp(64px, 8vw, 110px); padding-bottom: 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: clamp(56px, 7vw, 90px); }
.footer .display-sm { font-family: var(--serif); font-size: clamp(44px, 7vw, 90px); color: var(--off-white); line-height: 0.95; letter-spacing: -0.01em; margin-bottom: 24px; }
.footer-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-2); margin-bottom: 22px; }
.footer-col a, .footer-col p { display: block; color: var(--grey-3); font-size: 15px; margin-bottom: 12px; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 30px; border-top: 1px solid var(--hairline-2); flex-wrap: wrap; }
.footer-bottom p { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--grey-2); text-transform: uppercase; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--black); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--serif); font-size: 34px; color: var(--off-white); }
.mobile-menu a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gear-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-cta .btn { display: none; }
  .menu-toggle { display: flex; }
  .res-grid { grid-template-columns: 1fr; }
  .stats, .steps { grid-template-columns: 1fr; gap: 40px; }
  .stat { border-left: none; border-top: 1px solid var(--gold-line); padding-left: 0; padding-top: 22px; }
  .price-grid { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { order: -1; aspect-ratio: 4 / 3; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .hero-scroll { display: none; }

  /* Hero stacks — the face greets first, copy below */
  .hero { padding-top: clamp(96px, 15vh, 130px); align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: clamp(30px, 6vw, 44px); }
  .hero-portrait { order: -1; aspect-ratio: 4 / 5; max-height: 62vh; margin: 0 auto; width: 100%; }
  .hero-portrait img { object-position: 50% 22%; }
  .hero-tagline { max-width: none; }
}
@media (max-width: 480px) {
  .gear-grid { grid-template-columns: 1fr; }
  .hero .display { font-size: clamp(66px, 22vw, 110px); }
  .hero-portrait { aspect-ratio: 3 / 4; max-height: 56vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
