@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

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

/* ── TOKENS ─────────────────────────────────────────────────── */

:root {
  --cream:       #f8f4ef;
  --warm-white:  #fdfbf8;
  --charcoal:    #1c1c1a;
  --slate:       #4a4845;
  --muted:       #8a8480;
  --rule:        #ddd8d0;
  --red:         #cc2222;
  --red-dark:    #a81a1a;
  --red-light:   #f5dada;
  --green:       #3d6b4f;
  --green-light: #d0e4d8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', 'Helvetica Neue', sans-serif;
  --nav-h: 68px;
}

/* ── BASE ───────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.5s ease;
  min-height: 100vh;
}
body.loaded { opacity: 1; }

/* ── NAV ────────────────────────────────────────────────────── */

#lk-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  height: var(--nav-h);
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-logo-area {
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.09);
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-logo-area:hover { opacity: 0.85; }

.nav-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo-text {
  font-family: var(--serif);
  font-size: 17px;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.nav-tabs {
  display: flex;
  align-items: stretch;
  flex: 1;
  padding: 0 8px;
  gap: 2px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: rgba(255,255,255,0.45);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-tab:hover:not(.locked) { color: rgba(255,255,255,0.75); }
.nav-tab.active { color: var(--red); border-bottom-color: var(--red); }
.nav-tab.locked { cursor: not-allowed; opacity: 0.4; }
.nav-tab svg { flex-shrink: 0; }

.nav-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill-complete { background: rgba(61,107,79,0.25);  color: #7fc49a; }
.pill-active   { background: rgba(204,34,34,0.22);  color: #e07070; }
.pill-pending  { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.28); }

.nav-lock { display: flex; align-items: center; margin-left: 2px; }

.nav-right {
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-left: 1px solid rgba(255,255,255,0.09);
  flex-shrink: 0;
}
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 15px;
  color: #fff;
  font-weight: 500;
}

/* ── PROFILE DROPDOWN ───────────────────────────────────────── */

.nav-right { position: relative; }

.nav-avatar { cursor: pointer; user-select: none; }

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}
.profile-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.profile-dropdown-item:last-child { border-bottom: none; }
.profile-dropdown-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.profile-dropdown-item.danger:hover { color: var(--red); }

/* ── VIEW TRANSITIONS ───────────────────────────────────────── */

.lk-view { display: none; animation: fadeSlide 0.35s ease; }
.lk-view.visible { display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO ───────────────────────────────────────────────────── */

.hero-section {
  position: relative;
  height: 70vh;
  min-height: 460px;
  background: var(--charcoal);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  clip-path: inset(0);
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a2520 0%, #1c1c1a 55%, #2e2820 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.12);
  clip-path: inset(0);
}
.hero-placeholder svg { width: 60px; height: 60px; }
.hero-placeholder p {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,28,26,0.88) 0%, rgba(28,28,26,0.08) 60%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 44px 56px 120px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.hero-welcome {
  font-family: var(--serif);
  font-size: clamp(50px, 7vw, 90px);
  font-weight: 300;
  color: #fff;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.hero-welcome em { font-style: italic; }

.hero-sub {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
}

.hero-upload-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
  padding: 7px 14px;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.hero-upload-btn:hover { background: rgba(0,0,0,0.65); color: #fff; }
#hero-file-input { display: none; }

/* ── OVERVIEW STRIP ─────────────────────────────────────────── */

.overview-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 10;
  margin: -72px 40px 48px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.12);
  background: var(--warm-white);
}

.overview-item {
  padding: 26px 32px;
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background 0.2s;
}
.overview-item:last-child { border-right: none; }
.overview-item.clickable { cursor: pointer; }
.overview-item.clickable:hover { background: var(--cream); }
.overview-item.ov-locked { opacity: 0.55; cursor: not-allowed; }

.ov-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ov-status {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 9px;
}

.ov-progress-track {
  height: 2px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 7px;
}

.ov-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}
.fill-complete { background: var(--green); }
.fill-active   { background: var(--red); }
.fill-pending  { background: var(--rule); }

.ov-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
}

.ov-coming-soon {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 3px 8px;
  border-radius: 3px;
}

.ov-arrow {
  position: absolute;
  right: 18px;
  bottom: 22px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.overview-item.clickable:hover .ov-arrow { opacity: 1; transform: translateX(3px); }

/* ── PHASE SHARED ───────────────────────────────────────────── */

.phase-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 52px 36px 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 32px;
  border: none;
  background: none;
  padding: 0;
  transition: color 0.2s;
}
.back-link:hover { color: var(--charcoal); }

.phase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.phase-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.phase-title {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 6px;
}

.phase-lead {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

.phase-meta { text-align: right; }

.meta-item { margin-bottom: 10px; }

.meta-item-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.meta-item-value {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--charcoal);
}

/* ── PROGRESS RING ──────────────────────────────────────────── */

.progress-ring-section {
  display: flex;
  align-items: center;
  gap: 44px;
  background: var(--warm-white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 36px 44px;
  margin-bottom: 40px;
}

.ring-wrap { position: relative; flex-shrink: 0; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--rule); }
.ring-fill {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1);
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-pct {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
}

.ring-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.progress-summary { flex: 1; }

.progress-summary h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  margin-bottom: 9px;
}

.progress-summary p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--slate);
  line-height: 1.7;
}

/* ── MILESTONES ─────────────────────────────────────────────── */

.section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.milestones {
  margin-bottom: 44px;
  position: relative;
}
.milestones::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--rule);
}

.milestone {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.milestone:last-child { border-bottom: none; }

.ms-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--rule);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.ms-dot.complete { background: var(--green); border-color: var(--green); }
.ms-dot.active   { background: var(--red);   border-color: var(--red); }
.ms-dot.complete svg, .ms-dot.active svg { display: block; }
.ms-dot svg { display: none; width: 12px; height: 12px; color: #fff; }

.ms-name { font-family: var(--sans); font-size: 14px; color: var(--charcoal); }
.ms-name.muted { color: var(--muted); }
.ms-date { font-family: var(--serif); font-size: 14px; color: var(--muted); white-space: nowrap; }

/* ── UPDATES FEED ───────────────────────────────────────────── */

.update-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.update-item:last-child { border-bottom: none; }

.update-date {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  padding-top: 2px;
}

.update-note {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
}

/* ── COMING SOON BLOCK ──────────────────────────────────────── */

.coming-soon-block {
  background: var(--warm-white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 64px 48px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cs-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--muted);
}

.cs-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.cs-body {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* Coming soon — step list (construction) */

.cs-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}

.cs-step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.cs-step.done { color: var(--charcoal); }

.cs-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--rule);
  background: var(--cream);
  flex-shrink: 0;
}
.cs-step-dot.done   { background: var(--green); border-color: var(--green); }
.cs-step-dot.locked { border-style: dashed; }

/* Coming soon — services list (management) */

.cs-services {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  text-align: left;
}

.cs-service-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.cs-service-item:last-child { border-bottom: none; }

.cs-service-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
}

.cs-service-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 3px;
}

.cs-service-desc {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero-content { padding: 28px 22px 100px; }
  .overview-strip {
    grid-template-columns: 1fr;
    margin: -56px 16px 32px;
    border-radius: 4px;
  }
  .overview-item { border-right: none; border-bottom: 1px solid var(--rule); }
  .overview-item:last-child { border-bottom: none; }
  .phase-header { flex-direction: column; gap: 18px; }
  .phase-meta { text-align: left; }
  .progress-ring-section { flex-direction: column; align-items: flex-start; gap: 20px; }
  .phase-container { padding: 28px 18px 60px; }
  .nav-tab .nav-tab-text { display: none; }
}