/* ===== Creative Concepts — editorial luxe theme (ref: LUX type system) ===== */
:root {
  --bg: #f1efe9;
  --bg-2: #e8e4db;
  --ink: #333333;
  --head: #2e2e2e;
  --muted: #6b655c;
  --line: #d6d0c5;
  --dark: #2e2e2e;
  --dark-2: #242220;
  --cream: #ebe7de;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "General Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Typography ---- */
.font-display { font-family: "Cormorant", Georgia, serif; }
h1, h2, h3, .display {
  font-family: "Cormorant", Georgia, serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: var(--head);
  line-height: 0.98;
  margin: 0;
}
.eyebrow {
  font-family: "General Sans", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--muted);
}
.h-hero { font-size: clamp(2.5rem, 8.5vw, 7.5rem); }
.h-xl   { font-size: clamp(2.3rem, 5.5vw, 4.6rem); line-height: 1; }
.h-lg   { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.02; }
.h-md   { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.05; }
.lead { font-weight: 300; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.75; color: var(--ink); }
.body-sm { font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---- Buttons / links (text-style, uppercase) ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "General Sans", sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px;
  color: var(--head); text-decoration: none; cursor: pointer;
  padding-bottom: 4px; border-bottom: 1px solid var(--head);
  transition: gap 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover { gap: 16px; }
.btn-solid {
  border: 1px solid var(--head); border-bottom: 1px solid var(--head);
  padding: 15px 30px; background: var(--head); color: var(--bg);
}
.btn-solid:hover { background: transparent; color: var(--head); }
.btn-ghost { border: 1px solid currentColor; padding: 15px 30px; }
.link-caps {
  font-family: "General Sans", sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px;
  color: var(--ink); text-decoration: none; transition: color 0.3s ease;
}

/* ---- Layout helpers ---- */
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 28px; }
.rule { height: 1px; background: var(--line); border: 0; }
.section { padding: clamp(64px, 11vw, 150px) 0; }
.hover-zoom { overflow: hidden; }
.hover-zoom img { transition: transform 1.1s cubic-bezier(.16,.84,.44,1); display: block; }
.hover-zoom:hover img { transform: scale(1.06); }

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.solid { background: rgba(241,239,233,0.92); backdrop-filter: blur(8px); border-bottom-color: var(--line); padding: 16px 28px; }
.site-header .nav-link, .site-header .brand, .site-header .menu-toggle { color: var(--cream); }
.site-header.solid .nav-link, .site-header.solid .brand, .site-header.solid .menu-toggle { color: var(--head); }
/* pages without a dark hero: always-dark header text (home stays cream-over-hero) */
.site-header.header-dark .nav-link, .site-header.header-dark .brand, .site-header.header-dark .menu-toggle { color: var(--head); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 30px; width: 30px; object-fit: contain; }
.brand-text { font-family: "Cormorant", serif; text-transform: uppercase; letter-spacing: 0.02em; font-size: 22px; line-height: 1; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.nav-link { font-family: "General Sans", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; text-decoration: none; position: relative; transition: opacity 0.3s ease; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: currentColor; transition: width 0.35s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* mobile menu */
.mobile-nav { position: fixed; inset: 0; z-index: 95; background: var(--dark); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a { color: var(--cream); text-decoration: none; font-family: "Cormorant", serif; text-transform: uppercase; font-size: 34px; letter-spacing: 0.01em; }
.mobile-close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: var(--cream); cursor: pointer; }

@media (max-width: 880px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .wrap { padding: 0 20px; }
  .site-header, .site-header.solid, .site-header.header-dark { padding: 14px 20px; }
  .brand-text { font-size: 17px; }
  .brand-mark { height: 26px; width: 26px; }
  .brand { gap: 9px; }
  .section { padding: 64px 0; }
  .lead { font-size: 1.02rem; }
  .mobile-nav a { font-size: 28px; }
  .filter-bar { gap: 20px; }
}

/* ---- Hero ---- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,16,0.72), rgba(20,18,16,0.15) 45%, rgba(20,18,16,0.28)); }
.kenburns { animation: kb 16s ease-out forwards; }
@keyframes kb { from { transform: scale(1.05); } to { transform: scale(1.16); } }

/* ---- Dark section ---- */
.dark { background: var(--dark); color: var(--cream); }
.dark h1, .dark h2, .dark h3 { color: var(--cream); }
.dark .eyebrow { color: rgba(235,231,222,0.6); }
.dark .body-sm { color: rgba(235,231,222,0.65); }
.dark .lead { color: rgba(235,231,222,0.85); }

/* ---- Stats ---- */
.stat-num { font-family: "Cormorant", serif; font-weight: 400; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; display: block; }

/* ---- Loader ---- */
#loader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px; transition: opacity 0.8s ease, visibility 0.8s ease; }
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
#loader .wordmark { font-family: "Cormorant", serif; text-transform: uppercase; letter-spacing: 0.3em; font-size: 15px; color: var(--head); }
#loader-track { width: 200px; height: 1px; background: var(--line); overflow: hidden; }
#loader-fill { height: 100%; width: 0%; background: var(--head); }
body.is-loading { overflow: hidden; height: 100vh; }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); }

/* ---- Portfolio filter ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 28px; }
.filter-btn { background: none; border: 0; cursor: pointer; font-family: "General Sans", sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; color: var(--muted); padding-bottom: 5px;
  border-bottom: 1px solid transparent; transition: color 0.3s ease, border-color 0.3s ease; }
.filter-btn:hover { color: var(--head); }
.filter-btn.is-active { color: var(--head); border-bottom-color: var(--head); }
.proj-item.is-hidden { display: none; }

/* ---- Form ---- */
.field { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 12px 0;
  font-family: "General Sans", sans-serif; font-size: 16px; color: var(--ink); }
.field:focus { outline: none; border-bottom-color: var(--head); }
.field::placeholder { color: #a8a298; }
.field-label { font-family: "General Sans", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; color: var(--muted); }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c7c0b4; }
