/* ===========================================================
   Ellada Mesveliani Interiors — shared stylesheet
   Luxury · Design · Decor — Los Angeles
   =========================================================== */

:root {
  --bg:        #F6FEFF;   /* page background */
  --ink:       #1b1b1a;   /* primary text   */
  --ink-soft:  #46463f;   /* body copy      */
  --ink-mute:  #8d8d85;   /* captions       */
  --gold:      #b9912f;   /* accent / mark  */
  --gold-soft: #cda85a;
  --rule:      rgba(27, 27, 26, 0.12);

  --font:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   Navigation
   =========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  transition: background 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
}
.nav.scrolled {
  background: rgba(246, 254, 255, 0.82);
  backdrop-filter: blur(12px);
  padding: 16px 32px;
  box-shadow: 0 1px 0 var(--rule);
}
.nav .mark {
  font-size: 15px;
  letter-spacing: 0.22em;
  font-weight: 400;
  text-transform: uppercase;
}
.nav .links { display: flex; gap: 34px; }
.nav .links a {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.nav .links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.nav .links a:hover,
.nav .links a.active { color: var(--ink); }
.nav .links a:hover::after,
.nav .links a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none; border: 0;
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav .links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  .nav .links.open { opacity: 1; pointer-events: auto; }
  .nav .links a { font-size: 16px; }
  .nav-toggle { display: block; z-index: 110; }
}

/* ===========================================================
   Hero — Logo Website Lander
   =========================================================== */
.lander {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.lander .name {
  font-weight: 200;
  font-size: clamp(34px, 7.2vw, 104px);
  line-height: 1.04;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lander .sub {
  margin-top: 30px;
  font-size: clamp(13px, 1.7vw, 21px);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lander .place {
  margin-top: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.lander .crest {
  width: clamp(86px, 10vw, 138px);
  height: auto;
  margin-top: 36px;
}
/* logo is a transparent PNG/WebP — sits cleanly on any background */
/* staged fade-in */
.lander > * { opacity: 0; transform: translateY(18px); animation: rise 1.1s cubic-bezier(0.2,0.8,0.2,1) forwards; }
.lander .name  { animation-delay: 0.15s; }
.lander .sub   { animation-delay: 0.45s; }
.lander .place { animation-delay: 0.65s; }
.lander .crest { animation-delay: 0.85s; }
@keyframes rise { to { opacity: 1; transform: none; } }


/* ===========================================================
   Section scaffolding
   =========================================================== */
.section { padding: 110px 0; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

/* ——— Tagline ——— */
.tagline {
  text-align: center;
  padding: 120px 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tagline p {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(26px, 4.2vw, 56px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 980px;
  margin: 0 auto;
}
.tagline .crest-sm { width: 30px; margin: 0 auto 30px; opacity: 0.9; }

/* ——— About / Bio ——— */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.portrait {
  aspect-ratio: 1117 / 2000;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eef7f8 0%, #e3eef0 100%);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.about h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.about .bio p {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 560px;
}
.about .bio p:last-child { margin-bottom: 0; }
.about .bio em { font-style: italic; color: var(--ink); }
.about .signoff {
  margin-top: 34px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 44px; }
  .portrait { max-width: 420px; }
}

/* ——— Spaces grid ——— */
.spaces-head { text-align: center; margin-bottom: 64px; }
.spaces-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.tile {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, #eef7f8 0%, #dfeced 100%);
  display: block;
}
.tile img.cover {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2,0.8,0.2,1);
}
.tile:hover img.cover { transform: scale(1.04); }
.tile.has-photo::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(20,22,22,0.55) 0%, rgba(20,22,22,0) 45%);
}
.tile.has-photo .label { color: #fff; }
.tile .label {
  position: absolute;
  left: 26px; right: 26px; bottom: 22px;
  z-index: 2;
  color: var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
.tile .label .k {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 6px;
  white-space: nowrap;
}
.tile .label .t {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.1;
  text-align: right;
}
.tile .num {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  z-index: 2;
}
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(27,27,26,0.04);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.tile:hover::after { opacity: 1; }
.tile:hover .label { transform: translateY(-4px); }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ——— Contact band on home ——— */
.contact-band { text-align: center; padding: 130px 24px; }
.contact-band h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 36px;
}
.contact-band h2 em { font-style: italic; }
/* slot-machine word reel */
.word-slot {
  position: relative;
  display: inline-block;
  height: 1.1em;
  vertical-align: bottom;
  /* clip left/right only (for the width animation); let descenders/ascenders breathe.
     small right allowance so the italic lean on the last letter isn't shaved */
  clip-path: inset(-0.45em -0.12em -0.5em 0);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.word-track { display: block; height: 1.1em; }
.word-track > span {
  position: absolute;
  left: 0; top: 0;
  width: max-content;
  height: 1.1em;
  line-height: 1.1em;
  font-style: italic;
  opacity: 0;
  transform: translateY(0.42em);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.word-track > span.is-current { opacity: 1; transform: translateY(0); }
.word-track > span.is-out { opacity: 0; transform: translateY(-0.42em); }

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.btn .arrow { transition: transform 0.4s ease; }
.btn:hover .arrow { transform: translateX(5px); }

/* ===========================================================
   Gallery sub-pages (one per space)
   =========================================================== */
.gallery-hero {
  text-align: center;
  padding: 170px 0 64px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.gallery-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 8vw, 100px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.gallery-hero p {
  max-width: 540px;
  margin: 24px auto 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* masonry via CSS columns */
.gallery {
  columns: 3;
  column-gap: 22px;
}
.gallery figure {
  break-inside: avoid;
  margin: 0 0 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef7f8 0%, #dfeced 100%);
}
.gallery img {
  width: 100%;
  display: block;
  cursor: zoom-in;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}
.gallery figure:hover img { transform: scale(1.035); }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 600px) { .gallery { columns: 1; } }

/* empty state until photography is added */
.gallery-empty {
  text-align: center;
  padding: 70px 0 90px;
  color: var(--ink-mute);
}
.gallery-empty .crest-sm { width: 40px; margin: 0 auto 22px; }
.gallery-empty p { font-size: 14px; letter-spacing: 0.04em; }

/* prev / next space navigation */
.space-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 70px 0 30px;
  margin-top: 40px;
  border-top: 1px solid var(--rule);
}
.space-nav a {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}
.space-nav a:hover { color: var(--ink); }
.space-nav .k { color: var(--ink-mute); display: block; margin-bottom: 6px; font-size: 10px; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(22, 24, 24, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox .lb-close,
.lightbox .lb-arrow {
  position: absolute;
  color: rgba(255,255,255,0.8);
  background: none; border: 0;
  font-family: var(--font);
  cursor: pointer;
  transition: color 0.3s ease;
}
.lightbox .lb-close { top: 26px; right: 32px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.lightbox .lb-arrow { top: 50%; transform: translateY(-50%); font-size: 30px; padding: 16px; }
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }
.lightbox .lb-close:hover, .lightbox .lb-arrow:hover { color: #fff; }

/* ===========================================================
   Footer
   =========================================================== */
.foot {
  border-top: 1px solid var(--rule);
  padding: 70px 0 40px;
}
.foot .grid-foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot h4 {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
  font-weight: 500;
}
.foot p, .foot a { font-size: 14.5px; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.foot a:hover { color: var(--ink); }
.foot .brand-mark {
  font-size: 17px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.foot .meta {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 760px) {
  .foot .grid-foot { grid-template-columns: 1fr 1fr; }
}
