/* ══════════════════════════════════════════════════
   7 COLOUR THEMES
══════════════════════════════════════════════════ */
:root[data-theme="haussmann"] {
  --ink: #1a1814;
  --ink-mid: #3d3830;
  --ink-soft: #6b6057;
  --cream: #f5f0e8;
  --cream-mid: #ede6d9;
  --gold: #b8895a;
  --gold-pale: #d4aa7d;
  --white: #fafaf8;
}
:root[data-theme="blanc"] {
  --ink: #2a2520;
  --ink-mid: #4a4540;
  --ink-soft: #7a7570;
  --cream: #fafafa;
  --cream-mid: #f0ede8;
  --gold: #c4825a;
  --gold-pale: #d4a080;
  --white: #ffffff;
}
:root[data-theme="ardoise"] {
  --ink: #1b2a3b;
  --ink-mid: #2d4460;
  --ink-soft: #5a7a9a;
  --cream: #eef2f7;
  --cream-mid: #e0e8f0;
  --gold: #c9a96e;
  --gold-pale: #dfc090;
  --white: #f5f8fc;
}
:root[data-theme="mousse"] {
  --ink: #2d3e2f;
  --ink-mid: #445e47;
  --ink-soft: #6a8a6d;
  --cream: #f4f1ea;
  --cream-mid: #e8dfd0;
  --gold: #b8956a;
  --gold-pale: #ceb090;
  --white: #f8f6f0;
}
:root[data-theme="graphite"] {
  --ink: #3a3a3a;
  --ink-mid: #555555;
  --ink-soft: #888888;
  --cream: #f8f6f5;
  --cream-mid: #eeecea;
  --gold: #c4788a;
  --gold-pale: #d4a0ae;
  --white: #ffffff;
}
:root[data-theme="safran"] {
  --ink: #0f1c2e;
  --ink-mid: #1e3550;
  --ink-soft: #4a6a8a;
  --cream: #f5f0e0;
  --cream-mid: #eae0c8;
  --gold: #d4940a;
  --gold-pale: #e8b030;
  --white: #faf6ec;
}
:root[data-theme="corail"] {
  --ink: #2c1810;
  --ink-mid: #4a2e22;
  --ink-soft: #8a6050;
  --cream: #f7f2ec;
  --cream-mid: #efe8dc;
  --gold: #d95f3b;
  --gold-pale: #e88060;
  --white: #fdfaf7;
}

/* ══════════════════════════════════════════════════
   BASE
══════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════
   EDIT TOOLBAR
══════════════════════════════════════════════════ */
.edit-toolbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2rem;
  gap: 1rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.edit-toolbar.active { transform: translateY(0); }
body.edit-active { padding-top: 54px; }
.edit-badge {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.theme-swatches {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.theme-swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}
.theme-swatch:hover { transform: scale(1.2); }
.theme-swatch.active { border-color: #fff; transform: scale(1.15); }
.swatch-tip {
  display: none;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--ink);
  font-size: 0.65rem;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 3px;
  pointer-events: none;
}
.theme-swatch:hover .swatch-tip { display: block; }
.edit-actions { display: flex; gap: 0.6rem; }
.edit-btn {
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.edit-btn-save { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.edit-btn-save:hover { opacity: 0.85; }
.edit-btn-discard { background: transparent; color: rgba(245,240,232,0.55); border-color: rgba(245,240,232,0.2); }
.edit-btn-discard:hover { border-color: rgba(245,240,232,0.5); color: #fff; }
.edit-btn-exit { background: transparent; color: rgba(245,240,232,0.35); border-color: transparent; }
.edit-btn-exit:hover { color: #fff; }

/* edit mode element highlighting */
body.edit-active [data-key]:hover,
body.edit-active [data-key-html]:hover {
  outline: 1.5px dashed var(--gold);
  outline-offset: 3px;
  cursor: text;
  border-radius: 2px;
}
body.edit-active [data-key][contenteditable="true"],
body.edit-active [data-key-html][contenteditable="true"] {
  outline: 1.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
body.edit-active .img-editable {
  cursor: pointer;
  position: relative;
}
body.edit-active .img-editable::after {
  content: "📷  Changer l'image";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: transparent;
  transition: all 0.3s;
  z-index: 20;
  pointer-events: none;
}
body.edit-active .img-editable:hover::after {
  background: rgba(0,0,0,0.55);
  color: #fff;
}
body.edit-active .proj .proj-overlay {
  background: rgba(26,24,20,0.72) !important;
  pointer-events: none; /* let clicks fall through to .img-editable */
  z-index: 15;
}
/* re-enable pointer events only on the text labels so they remain editable */
body.edit-active .proj .proj-overlay [data-key] {
  pointer-events: auto;
}
body.edit-active .proj .proj-name,
body.edit-active .proj .proj-loc {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
body.edit-active .proj .img-editable::after { display: none !important; }
body.edit-active .proj [data-key]:hover {
  outline: 1.5px dashed var(--gold);
  outline-offset: 2px;
  cursor: text;
}
body.edit-active .proj [data-key][contenteditable="true"] {
  outline: 1.5px solid var(--gold);
  outline-offset: 2px;
}
body.edit-active .img-editable { z-index: 10; }

/* ══════════════════════════════════════════════════
   LOGIN MODAL
══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(26,24,20,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}
.modal-box {
  background: var(--white);
  padding: 3rem 3.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
}
.modal-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.modal-logo span { color: var(--gold); }
.modal-sub {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.modal-input {
  width: 100%;
  background: var(--cream);
  border: 1px solid rgba(26,24,20,0.12);
  padding: 0.85rem 1rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 0.25em;
  transition: border-color 0.2s;
}
.modal-input:focus { border-color: var(--gold); }
.modal-btn {
  width: 100%;
  background: var(--ink);
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-btn:hover { background: var(--gold); color: var(--ink); }
.modal-err {
  font-size: 0.8rem;
  color: #b83232;
  margin-top: 0.8rem;
  min-height: 1.2rem;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.modal-box.shake { animation: shake 0.4s ease; }

/* ══════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9998;
  background: var(--ink);
  color: var(--cream);
  padding: 0.9rem 1.8rem;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  max-width: 340px;
  line-height: 1.5;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.ok { background: #3a6855; }
.toast.err { background: #8b2e2e; }
.hidden { display: none !important; }

/* ══════════════════════════════════════════════════
   SUBMISSIONS MODAL
══════════════════════════════════════════════════ */
.sub-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(26,24,20,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.sub-modal-box {
  background: var(--white);
  width: min(96vw, 1000px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sub-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid rgba(26,24,20,0.1);
  flex-shrink: 0;
}
.sub-modal-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
}
.sub-modal-meta { font-size: 0.76rem; color: var(--ink-soft); margin-top: 0.15rem; }
.sub-modal-close {
  background: none; border: none; font-size: 1.4rem;
  cursor: pointer; color: var(--ink-soft); line-height: 1; padding: 0.2rem 0.5rem;
}
.sub-modal-close:hover { color: var(--ink); }
.sub-table-wrap { overflow: auto; flex: 1; }
.sub-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.sub-table th {
  position: sticky; top: 0;
  background: var(--ink); color: var(--cream);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0.8rem 1rem; text-align: left; white-space: nowrap;
}
.sub-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(26,24,20,0.06);
  color: var(--ink-mid); vertical-align: top;
}
.sub-table tr:hover td { background: var(--cream); }
.sub-table .badge {
  display: inline-block; font-size: 0.68rem; padding: 0.2rem 0.65rem;
  border-radius: 2px; background: var(--cream); color: var(--ink-soft); white-space: nowrap;
}
.sub-modal-empty {
  padding: 4rem; text-align: center; color: var(--ink-soft);
  font-family: "Cormorant Garamond", serif; font-size: 1.2rem; font-style: italic;
}
.sub-modal-foot {
  padding: 1rem 1.8rem;
  border-top: 1px solid rgba(26,24,20,0.08);
  display: flex; justify-content: flex-end; gap: 0.8rem; flex-shrink: 0;
}
.sub-btn {
  font-family: "DM Sans", sans-serif; font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5rem 1.2rem;
  cursor: pointer; border: 1px solid rgba(26,24,20,0.15);
  background: transparent; color: var(--ink-mid); transition: all 0.2s;
}
.sub-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.sub-btn-danger { border-color: rgba(180,50,50,0.3); color: #8b2e2e; }
.sub-btn-danger:hover { background: #8b2e2e; border-color: #8b2e2e; color: #fff; }

/* ══════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 5vw;
  transition: background 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26,24,20,0.08);
}
.nav-logo {
  text-decoration: none; cursor: pointer; user-select: none;
  display: flex; align-items: center;
}
.nav-logo img {
  height: 80px; /* enlarged */
  width: auto; display: block;
  filter: drop-shadow(0 2px 10px rgba(184,137,90,0.4)) drop-shadow(0 1px 3px rgba(26,24,20,0.18));
  transition: filter 0.38s ease, transform 0.38s ease;
}
.nav-logo:hover img {
  filter: drop-shadow(0 4px 18px rgba(184,137,90,0.75)) drop-shadow(0 0 8px rgba(212,170,125,0.5));
  transform: scale(1.05);
}
.nav-links { display: flex; gap: 2.4rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mid); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--white); background: var(--ink);
  padding: 0.6rem 1.4rem; text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold); }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.hero-left {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12vh 5vw 10vh; background: var(--ink); position: relative; overflow: hidden;
}
.hero-left::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23B8895A' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-tag {
  font-size: 0.75rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.8rem; opacity: 0; animation: fadeUp 1s 0.2s forwards;
}
.hero-title {
  font-family: "Cormorant Garamond", serif; font-size: clamp(2.8rem,5vw,4.2rem);
  font-weight: 300; line-height: 1.15; color: var(--cream); margin-bottom: 1.6rem;
  opacity: 0; animation: fadeUp 1s 0.4s forwards;
}
.hero-title em { font-style: italic; color: var(--gold-pale); }
.hero-desc {
  font-size: 0.95rem; font-weight: 300; color: rgba(245,240,232,0.65);
  max-width: 380px; margin-bottom: 2.6rem; opacity: 0; animation: fadeUp 1s 0.6s forwards;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s 0.8s forwards; }
.btn-primary {
  display: inline-block; background: var(--gold); color: var(--ink);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.85rem 2rem; text-decoration: none; transition: background 0.25s, transform 0.25s;
}
.btn-primary:hover { background: var(--gold-pale); transform: translateY(-2px); }
.btn-outline {
  display: inline-block; border: 1px solid rgba(245,240,232,0.3); color: var(--cream);
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.85rem 2rem; text-decoration: none; transition: border-color 0.25s, color 0.25s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero-right { position: relative; overflow: hidden; background: var(--cream-mid); }
.hero-img-area {
  width: 100%; height: 100%; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; min-height: 100%;
}
.hero-img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 60vh;
  background: linear-gradient(160deg, #d4c5af 0%, #c0ac93 40%, #a89078 100%);
}
.hero-img-placeholder svg { opacity: 0.25; }
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero-scroll-hint span { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.scroll-line { width: 1px; height: 40px; background: var(--ink-soft); animation: scrollPulse 1.8s ease-in-out infinite; }

/* ══════════════════════════════════════════════════
   HERO MEDIA
══════════════════════════════════════════════════ */
.hero-media-wrap { position: relative; width: 100%; height: 100%; min-height: 60vh; overflow: hidden; }
.hero-media-btn {
  background: rgba(26,24,20,0.75); color: var(--cream);
  border: 1px solid rgba(245,240,232,0.25);
  font-family: "DM Sans", sans-serif; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; padding: 0.5rem 1rem; cursor: pointer;
  backdrop-filter: blur(4px); transition: background 0.2s; white-space: nowrap;
}
.hero-media-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
body.edit-active #hero-edit-badges { display: flex !important; }
body:not(.edit-active) #hero-edit-badges { display: none !important; }
body.edit-active .hero-media-wrap.img-editable::after { display: none; }

/* ══════════════════════════════════════════════════
   STATS BAND
══════════════════════════════════════════════════ */
.stats-band {
  background: var(--cream); padding: 3.5rem 5vw;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem;
  border-top: 1px solid rgba(26,24,20,0.06); border-bottom: 1px solid rgba(26,24,20,0.06);
}
.stat-item { text-align: center; }
.stat-num {
  font-family: "Cormorant Garamond", serif; font-size: 2.8rem;
  font-weight: 300; color: var(--ink); line-height: 1; margin-bottom: 0.4rem;
}
.stat-num .gold { color: var(--gold); }
.stat-label { font-size: 0.78rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

/* ══════════════════════════════════════════════════
   SECTION COMMONS
══════════════════════════════════════════════════ */
section { padding: 8rem 5vw; }
.section-tag { font-size: 0.72rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-title {
  font-family: "Cormorant Garamond", serif; font-size: clamp(2rem,3.5vw,3rem);
  font-weight: 300; color: var(--ink); line-height: 1.2; margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; }
.section-lead { font-size: 0.95rem; font-weight: 300; color: var(--ink-soft); max-width: 520px; line-height: 1.8; }

/* ══════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════ */
#services { background: var(--white); }
.services-grid {
  margin-top: 4.5rem; display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px; background: rgba(26,24,20,0.07); border: 2px solid rgba(26,24,20,0.07);
}
.service-card { background: var(--white); padding: 3rem 2.4rem; transition: background 0.3s; position: relative; overflow: hidden; }
.service-card::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.4s ease; }
.service-card:hover { background: var(--cream); }
.service-card:hover::after { width: 100%; }
.service-icon { width: 42px; height: 42px; margin-bottom: 1.8rem; color: var(--gold); }
.service-name { font-family: "Cormorant Garamond", serif; font-size: 1.4rem; font-weight: 400; color: var(--ink); margin-bottom: 0.8rem; }
.service-desc { font-size: 0.88rem; font-weight: 300; color: var(--ink-soft); line-height: 1.75; }

/* ══════════════════════════════════════════════════
   PROCESS
══════════════════════════════════════════════════ */
#process { background: var(--ink); }
#process .section-tag { color: var(--gold-pale); }
#process .section-title { color: var(--cream); }
#process .section-lead { color: rgba(245,240,232,0.55); }
.process-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 6rem; align-items: start; margin-top: 4.5rem; }
.process-img-block { position: relative; }
.process-img-area {
  width: 100%; aspect-ratio: 3/4; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.process-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, #3d3525 0%, #2c2419 50%, #1f1a10 100%); min-height: 300px;
}
.process-img-placeholder svg { opacity: 0.15; }
.process-accent-box { position: absolute; bottom: -2rem; right: -2rem; background: var(--gold); padding: 2rem 2.4rem; max-width: 220px; }
.process-accent-num { font-family: "Cormorant Garamond", serif; font-size: 3rem; font-weight: 300; color: var(--ink); line-height: 1; }
.process-accent-label { font-size: 0.75rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mid); margin-top: 0.4rem; }
.process-steps { display: flex; flex-direction: column; }
.process-step { display: grid; grid-template-columns: 3rem 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid rgba(245,240,232,0.08); align-items: start; }
.process-step:first-child { border-top: 1px solid rgba(245,240,232,0.08); }
.step-num { font-family: "Cormorant Garamond", serif; font-size: 1rem; color: var(--gold); font-weight: 400; padding-top: 0.15rem; }
.step-title { font-family: "Cormorant Garamond", serif; font-size: 1.2rem; font-weight: 400; color: var(--cream); margin-bottom: 0.4rem; }
.step-desc { font-size: 0.86rem; font-weight: 300; color: rgba(245,240,232,0.5); line-height: 1.75; }

/* ══════════════════════════════════════════════════
   PORTFOLIO — images only
══════════════════════════════════════════════════ */
#portfolio { background: var(--cream); }
.portfolio-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 1.2rem; }
.proj { overflow: hidden; position: relative; cursor: pointer; }
.proj-img-area {
  width: 100%; height: 100%; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; transition: transform 0.5s ease;
}
.proj:hover .proj-img-area { transform: scale(1.03); }
.proj-overlay {
  position: absolute; inset: 0; background: rgba(26,24,20,0);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; transition: background 0.35s;
}
.proj:hover .proj-overlay { background: rgba(26,24,20,0.6); }
.proj-name {
  font-family: "Cormorant Garamond", serif; font-size: 1.1rem; font-weight: 300;
  color: var(--cream); opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.proj-loc {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-pale); margin-top: 0.2rem; opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s 0.05s, transform 0.3s 0.05s;
}
.proj:hover .proj-name,
.proj:hover .proj-loc { opacity: 1; transform: translateY(0); }
.proj-a { grid-column: span 7; aspect-ratio: 4/3; }
.proj-b { grid-column: span 5; aspect-ratio: 4/3; }
.proj-c, .proj-d, .proj-e { grid-column: span 4; aspect-ratio: 3/4; }
.proj-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pg-1 .proj-img-placeholder { background: linear-gradient(135deg, #c5b49a 0%, #a89278 100%); }
.pg-2 .proj-img-placeholder { background: linear-gradient(135deg, #9bada8 0%, #758e89 100%); }
.pg-3 .proj-img-placeholder { background: linear-gradient(135deg, #c4a882 0%, #a88d66 100%); }
.pg-4 .proj-img-placeholder { background: linear-gradient(135deg, #b5b0a2 0%, #938d81 100%); }
.pg-5 .proj-img-placeholder { background: linear-gradient(135deg, #a8b4b0 0%, #8a9e9a 100%); }

/* ══════════════════════════════════════════════════
   SHOWREEL
══════════════════════════════════════════════════ */
.showreel-wrap { max-width: 960px; margin: 0 auto; }
.showreel-frame {
  width: 100%; aspect-ratio: 16/9; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,240,232,0.08); position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.showreel-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; text-align: center; padding: 2rem;
}
/* showreel toggle in edit mode */
.showreel-toggle-wrap {
  display: flex; align-items: center; gap: 0.8rem;
  margin-top: 1.2rem;
}
.showreel-toggle-label {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(245,240,232,0.6);
}
.toggle-switch {
  position: relative; width: 42px; height: 24px; cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: rgba(255,255,255,0.15);
  border-radius: 24px; transition: background 0.25s;
}
.toggle-slider::before {
  content: ""; position: absolute;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  left: 3px; bottom: 3px; transition: transform 0.25s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--gold); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }
body.edit-active #showreel-edit-wrap { display: block !important; }

/* ══════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════ */
#testimonials { background: var(--white); }
.testimonials-grid { margin-top: 4rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.testimonial-card {
  border: 1px solid rgba(26,24,20,0.07); padding: 2.4rem; background: var(--white);
  transition: border-color 0.3s, transform 0.3s;
}
.testimonial-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.quote-mark { font-family: "Cormorant Garamond", serif; font-size: 5rem; color: var(--gold); opacity: 0.2; line-height: 0.7; margin-bottom: 1.4rem; display: block; }
.testimonial-text { font-family: "Cormorant Garamond", serif; font-size: 1.05rem; font-weight: 300; font-style: italic; color: var(--ink-mid); line-height: 1.7; margin-bottom: 1.8rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.9rem; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 500; color: #fff; flex-shrink: 0; }
.av-1 { background: var(--ink-mid); }
.av-2 { background: #5c7a72; }
.av-3 { background: #7a6054; }
.author-name { font-size: 0.88rem; font-weight: 500; color: var(--ink); }
.author-loc { font-size: 0.76rem; color: var(--ink-soft); margin-top: 0.1rem; }

/* ══════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════ */
#contact { background: var(--cream); display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.contact-details { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.4rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { color: var(--gold); margin-top: 0.15rem; flex-shrink: 0; }
.contact-item-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.2rem; }
.contact-item-val { font-size: 0.9rem; color: var(--ink-mid); font-weight: 300; }
.form-group { margin-bottom: 1.4rem; }
.form-label { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--white); border: 1px solid rgba(26,24,20,0.12);
  padding: 0.85rem 1rem; font-family: "DM Sans", sans-serif; font-size: 0.9rem;
  font-weight: 300; color: var(--ink); outline: none; transition: border-color 0.2s; appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--gold); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.submit-btn {
  display: block; width: 100%; background: var(--ink); color: var(--cream);
  font-family: "DM Sans", sans-serif; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 1rem; border: none;
  cursor: pointer; transition: background 0.25s;
}
.submit-btn:hover { background: var(--gold); color: var(--ink); }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer { background: var(--ink); padding: 4rem 5vw 2.5rem; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(245,240,232,0.08); margin-bottom: 2rem;
}
.footer-logo { font-family: "Cormorant Garamond", serif; font-size: 1.2rem; font-weight: 400; color: var(--cream); letter-spacing: 0.06em; margin-bottom: 1rem; display: block; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.83rem; font-weight: 300; color: rgba(245,240,232,0.4); max-width: 240px; line-height: 1.7; }
.footer-col-title { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.84rem; font-weight: 300; color: rgba(245,240,232,0.5); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.76rem; font-weight: 300; color: rgba(245,240,232,0.25); }
.footer-social { display: flex; gap: 1.2rem; }
.footer-social a { font-size: 0.76rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,240,232,0.35); text-decoration: none; transition: color 0.2s; }
.footer-social a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%       { transform: scaleY(1);   opacity: 1; }
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { min-height: 55vw; }
  .stats-band { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: 1fr; gap: 1px; }
  .process-layout { grid-template-columns: 1fr; gap: 3rem; }
  .process-accent-box { right: 0; bottom: -1rem; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .proj-a, .proj-b { grid-column: span 12; }
  .proj-c, .proj-d, .proj-e { grid-column: span 12; aspect-ratio: 16/9; }
  .testimonials-grid { grid-template-columns: 1fr; }
  #contact { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 5vw; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .theme-swatches { display: none; }
  .edit-toolbar { flex-wrap: wrap; padding: 0.6rem 1rem; }
  .nav-logo img { height: 60px; }
}
@media (max-width: 500px) {
  .stats-band { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
