:root {
  --bg: #dcd0c2;
  --ink: #1a1a1a;
  --ink-soft: #2a2a2a;
  --ink-body: #3d3d3d;
  --ink-mid: #6b6b6b;
  --line: rgba(26, 26, 26, 0.2);
  --script: 'Great Vibes', cursive;
  --sans: 'Poppins', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============ PREVIEW BANNER (remove for production) ============ */
.preview-banner {
  background: #1a1a1a;
  color: #d4c9b8;
  padding: 10px 24px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 400;
}
.preview-banner strong { color: #fff; font-weight: 500; }

/* ============ NAV ============ */
nav {
  padding: 28px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}
.logo-script {
  font-family: var(--script);
  font-size: 44px;
  font-weight: 400;
  color: var(--ink);
  line-height: 0.9;
  letter-spacing: 0.01em;
}
.logo-sub {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  margin-top: 4px;
  color: var(--ink);
  padding-left: 4px;
}

.nav-links {
  display: flex;
  gap: 56px;
  list-style: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.3s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover { opacity: 0.6; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
}
.nav-links a.has-arrow::after {
  content: ' ⌄';
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.6;
}

/* ============ HERO SPLIT ============ */
.hero-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  align-items: center;
  padding: 60px 0 100px;
  min-height: 90vh;
}

.hero-image {
  width: 100%;
  height: 90vh;
  max-height: 900px;
  overflow: hidden;
  background: #e6dfd3;
  position: relative;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  padding: 0 80px 0 90px;
  max-width: 720px;
}
.hero-content h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 56px;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 36px;
}
.hero-content p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-body);
  margin-bottom: 20px;
}
.hero-content p.italic-line {
  margin-top: 28px;
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
}

/* ============ SECTION DOT ============ */
.section-dot {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.section-dot span {
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

/* ============ PROJECTS ============ */
.projects-section {
  padding: 80px 64px 120px;
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.project {
  text-decoration: none;
  color: inherit;
  display: block;
}
.project-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 36px;
  background: #e6dfd3;
  position: relative;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.project:hover .project-image img { transform: scale(1.04); }
.project-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
  transition: opacity 0.3s;
}
.project:hover .project-name { opacity: 0.55; }
.project-eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

/* ============ CLOSING / CTA ============ */
.closing-section {
  padding: 100px 64px 140px;
  border-top: 1px solid var(--line);
}
.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 100px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
.closing-grid h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
}
.closing-grid p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-body);
  margin-bottom: 22px;
}
.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}
.cta-primary:hover { background: transparent; color: var(--ink); }
.cta-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.cta-secondary:hover { background: var(--ink); color: var(--bg); }
.cta-arrow { transition: transform 0.3s; }
.cta:hover .cta-arrow { transform: translateX(4px); }

/* ============ FOOTER ============ */
footer {
  padding: 50px 64px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-mid);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--bg);
}

/* ============ IMAGE DOWNLOAD HOVER BUTTON ============ */
.img-download {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  text-decoration: none;
}
.img-download svg {
  width: 18px;
  height: 18px;
}
.hero-image:hover .img-download,
.project-image:hover .img-download {
  opacity: 1;
  transform: translateY(0);
}
.img-download:hover {
  background: rgba(26, 26, 26, 1);
  transform: translateY(0) scale(1.08);
}

/* ============ EDITABLE TEXT FEEDBACK ============ */
[contenteditable="true"] {
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
  border-radius: 2px;
  cursor: text;
}
[contenteditable="true"]:hover {
  background: rgba(26, 26, 26, 0.04);
  box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.04);
}
[contenteditable="true"]:focus {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.08);
}

/* ============ EDIT HINT TOAST ============ */
.edit-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #1a1a1a;
  color: #fff;
  padding: 12px 18px 12px 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  font-family: var(--sans);
  transition: opacity 0.4s, transform 0.4s;
}
.edit-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  pointer-events: none;
}
.edit-hint svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.edit-hint button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  margin-left: 6px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.edit-hint button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  nav { padding: 18px 24px; flex-direction: column; gap: 20px; }
  .nav-links { gap: 24px; font-size: 11px; }
  .hero-split { grid-template-columns: 1fr; padding: 40px 0 60px; min-height: auto; }
  .hero-image { height: 60vh; max-height: 600px; }
  .hero-content { padding: 40px 24px 0; max-width: 100%; }
  .hero-content h1 { font-size: 36px; }
  .projects-section { padding: 60px 24px; }
  .projects-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-name { font-size: 28px; }
  .closing-section { padding: 60px 24px 80px; }
  .closing-grid { grid-template-columns: 1fr; gap: 32px; }
  .closing-grid h2 { font-size: 32px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta { justify-content: space-between; }
  .edit-hint { font-size: 11px; padding: 10px 14px; left: 16px; right: 16px; transform: none; max-width: calc(100vw - 32px); }
  .edit-hint.hidden { transform: translateY(16px); }
}
