:root {
  --bg: #FAF7F2;
  --bg-alt: #F2ECE0;
  --ink: #0F1E3C;
  --ink-2: #1B2B4D;
  --muted: #6B6658;
  --rule: #E3DBCB;
  --gold: #B8935A;
  --gold-2: #9E7B44;
  --white: #FFFFFF;
}
[data-theme="charcoal-gold"] {
  --bg: #F6F4F0;
  --bg-alt: #E9E6DF;
  --ink: #1F1F1C;
  --ink-2: #2C2C28;
  --muted: #6F6B63;
  --rule: #DDD7CB;
  --gold: #B8935A;
  --gold-2: #9E7B44;
}
[data-theme="mono"] {
  --bg: #F7F6F3;
  --bg-alt: #ECEAE4;
  --ink: #161614;
  --ink-2: #2A2A26;
  --muted: #6E6A62;
  --rule: #D9D5CC;
  --gold: #1F1F1C;
  --gold-2: #1F1F1C;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.serif { font-family: 'Cormorant Garamond', 'Times New Roman', serif; font-weight: 500; letter-spacing: -0.01em; }
.mono-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
img { display: block; max-width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  transition: background 0.35s ease, padding 0.3s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 48px;
  box-shadow: 0 1px 0 var(--rule);
}
.nav-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.logo-mark { display: inline-flex; flex-direction: column; align-items: stretch; line-height: 1; }
.logo-word {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--ink);
}
.logo-arch { display: block; width: 100%; height: 8px; color: var(--gold); margin-top: 2px; }
.logo-tag {
  font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); padding-left: 14px; border-left: 1px solid var(--rule);
  line-height: 1.3; font-weight: 500;
}
.nav.scrolled .logo-word { font-size: 26px; transition: font-size 0.3s ease; }
.nav-links { display: flex; gap: 38px; align-items: center; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: 0.05em; position: relative; padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 22px; border: 1px solid var(--ink); color: var(--ink);
  text-decoration: none; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500; transition: all 0.25s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  padding-top: 80px;
}
.hero-left {
  padding: 80px 48px 80px 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.hero-eyebrow .line { width: 40px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 32px;
}
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero-sub {
  font-size: 18px; color: var(--muted); max-width: 480px;
  line-height: 1.65; margin-bottom: 48px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; }
.btn-primary {
  padding: 16px 32px; background: var(--ink); color: var(--bg);
  text-decoration: none; font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500; display: inline-flex;
  align-items: center; gap: 10px; transition: all 0.25s ease;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold); color: var(--bg); }
.btn-primary .arrow { transition: transform 0.25s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-secondary {
  padding: 16px 24px; color: var(--ink); text-decoration: none;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; border-bottom: 1px solid var(--ink);
  transition: all 0.25s ease;
}
.btn-secondary:hover { color: var(--gold); border-color: var(--gold); }
.hero-right { position: relative; overflow: hidden; background: var(--bg-alt); }
.hero-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: opacity 1.2s ease;
}
.hero-img.active { opacity: 1; }
.hero-img.inactive { opacity: 0; }
.hero-meta {
  position: absolute; left: 40px; bottom: 40px; z-index: 2;
  color: var(--bg); padding: 14px 18px;
  background: rgba(15, 30, 60, 0.55); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 2px solid var(--gold);
}
.hero-meta .mono-label { color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.hero-meta .title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; }
.hero-pagination { position: absolute; right: 40px; bottom: 40px; z-index: 2; display: flex; gap: 8px; }
.hero-pagination button {
  width: 32px; height: 2px; background: rgba(255,255,255,0.4); border: none;
  cursor: pointer; transition: background 0.25s;
}
.hero-pagination button.active { background: var(--gold); }
.scroll-hint {
  position: absolute; left: 80px; bottom: 32px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 12px;
}
.scroll-hint::after {
  content: ''; width: 40px; height: 1px; background: var(--muted);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleX(1); opacity: 0.4; }
  50% { transform: scaleX(1.4); opacity: 1; }
}

/* ---------- SECTIONS ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 140px 80px; max-width: 1440px; margin: 0 auto; }
.section-header { margin-bottom: 80px; max-width: 700px; }
.section-header .mono-label { margin-bottom: 20px; display: block; }
.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05; letter-spacing: -0.015em;
  color: var(--ink);
}
.section-header h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
.section-header .lead {
  font-size: 17px; color: var(--muted); max-width: 540px;
  margin-top: 24px; line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.about-img-wrap { position: relative; }
.about-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(0.95); }
.about-badge {
  position: absolute; bottom: -40px; left: -40px;
  background: var(--bg); padding: 28px 32px;
  border-left: 2px solid var(--gold); max-width: 260px;
}
.about-badge .year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 500; color: var(--ink); line-height: 1;
}
.about-badge .cap { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.about-body { padding-top: 20px; }
.about-body h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(32px, 3.8vw, 52px); line-height: 1.1;
  letter-spacing: -0.015em; margin-bottom: 28px;
}
.about-body h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
.about-body p { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin-bottom: 20px; }
.about-body p.dim { color: var(--muted); }
.about-locations {
  margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.loc .mono-label { margin-bottom: 6px; display: block; }
.loc .name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--ink); }

/* ---------- VALUES ---------- */
.values-section { background: var(--bg-alt); }
.about-principle {
  margin: 36px 0 12px; padding: 28px 32px;
  background: var(--bg-alt); border-left: 2px solid var(--gold);
}
.about-principle .mono-label { display: block; margin-bottom: 10px; }
.about-principle .principle-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 500; color: var(--ink); line-height: 1.2;
}
.about-principle .principle-text em { font-style: italic; color: var(--gold); }
.values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--rule); border: 1px solid var(--rule);
}
.value {
  background: var(--bg-alt); padding: 48px 40px;
  display: flex; flex-direction: column; gap: 20px;
  transition: background 0.3s ease; min-height: 340px;
}
.value:hover { background: var(--bg); }
.value .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; font-weight: 500; color: var(--gold); letter-spacing: 0.1em;
}
.value h3 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 500; line-height: 1.15; color: var(--ink); }
.value p { font-size: 15px; line-height: 1.7; color: var(--muted); margin-top: auto; }

/* ---------- PROJECTS ---------- */
.projects { display: grid; grid-template-columns: 1fr; gap: 8px; }
.project {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: 0; align-items: stretch;
  background: var(--bg); width: 100%; max-width: 100%; overflow: hidden;
}
.project > * { min-width: 0; }
.project:nth-child(even) { grid-template-columns: 5fr 7fr; }
.project:nth-child(even) .project-img { order: 2; }
.project:nth-child(even) .project-info { order: 1; }
.project-img {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 16/10; background: var(--bg-alt);
  min-width: 0; max-width: 100%;
}
.project-img img {
  display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-img:hover img { transform: scale(1.04); }
.project-img-overlay {
  position: absolute; inset: 0; background: rgba(15, 30, 60, 0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.35s ease; pointer-events: none;
}
.project-img:hover .project-img-overlay { background: rgba(15, 30, 60, 0.25); }
.project-img-overlay .view-gal {
  padding: 12px 22px; border: 1px solid var(--bg); color: var(--bg);
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 500; opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.project-img:hover .project-img-overlay .view-gal { opacity: 1; transform: translateY(0); }
.project-info {
  padding: 64px 56px; display: flex; flex-direction: column;
  justify-content: center; background: var(--bg);
}
.project-info .mono-label { margin-bottom: 18px; display: block; }
.project-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 3.2vw, 44px); font-weight: 500;
  line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 20px;
}
.project-info .address { font-size: 14px; color: var(--muted); margin-bottom: 36px; letter-spacing: 0.02em; }
.project-info .desc { font-size: 15px; line-height: 1.75; color: var(--ink-2); margin-bottom: 32px; }
.view-project-btn {
  align-self: flex-start; background: none; border: none; cursor: pointer;
  border-top: 1px solid var(--rule);
  font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 500; color: var(--ink);
  padding: 24px 0 12px; position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  transition: color 0.25s ease; min-width: 200px;
}
.view-project-btn::after {
  content: ''; position: absolute; left: 0; bottom: 6px;
  width: 48px; height: 1px; background: var(--gold); transition: width 0.3s ease;
}
.view-project-btn:hover { color: var(--gold); }
.view-project-btn:hover::after { width: 100%; }

/* ---------- QUALITY ---------- */
.quality { background: var(--ink); color: var(--bg); padding: 120px 80px; }
.quality-inner { max-width: 1440px; margin: 0 auto; }
.quality-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: end; margin-bottom: 80px; }
.quality-head h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(36px, 4vw, 56px); line-height: 1.1;
}
.quality-head h3 em { font-style: italic; color: var(--gold); font-weight: 400; }
.quality-head p { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.75; }
.quality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.quality-item { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 24px; }
.quality-item .mono-label { color: var(--gold); margin-bottom: 12px; display: block; }
.quality-item .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500; color: var(--bg); margin-bottom: 8px; line-height: 1.2;
}
.quality-item .note { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ---------- CONTACT ---------- */
.contact-section { background: var(--bg-alt); padding: 140px 80px; }
.contact-inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 5fr 7fr; gap: 100px;
}
.contact-left h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(40px, 4.5vw, 64px); line-height: 1.05;
  letter-spacing: -0.015em; margin: 16px 0 28px;
}
.contact-left h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
.contact-left .lead { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin-bottom: 48px; }
.contact-details { display: flex; flex-direction: column; gap: 28px; margin-bottom: 40px; }
.contact-item {
  padding: 20px 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: baseline;
}
.contact-item:last-child { border-bottom: 1px solid var(--rule); }
.contact-item .mono-label { padding-top: 4px; }
.contact-item .val { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; color: var(--ink); }
.contact-item .val a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.contact-item .val a:hover { color: var(--gold); }
.contact-form { background: var(--bg); padding: 56px; border-top: 2px solid var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 28px; position: relative; }
.field label {
  display: block; font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 8px;
}
.field label .req { color: var(--gold); }
.field input, .field textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0; font-size: 16px;
  font-family: 'Inter', sans-serif; color: var(--ink);
  transition: border-color 0.25s ease; resize: none;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field.error input, .field.error textarea { border-bottom-color: #B4422A; }
.field .error-msg { font-size: 12px; color: #B4422A; margin-top: 6px; opacity: 0; transition: opacity 0.2s ease; }
.field.error .error-msg { opacity: 1; }
.field textarea { min-height: 120px; }
.submit-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--rule);
}
.submit-note { font-size: 12px; color: var(--muted); }
.submit-btn {
  padding: 16px 32px; background: var(--ink); color: var(--bg);
  border: none; cursor: pointer; font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 500; display: inline-flex;
  align-items: center; gap: 12px; transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
}
.submit-btn:hover { background: var(--gold); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success { display: none; padding: 48px; text-align: center; }
.form-success.show { display: block; }
.form-success .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 24px;
}
.form-success h3 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 500; margin-bottom: 12px; }
.form-success p { color: var(--muted); }

/* ---------- FOOTER ---------- */
footer { background: var(--ink); color: var(--bg); padding: 80px 80px 40px; }
.footer-inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-logo-mark { display: inline-flex; flex-direction: column; line-height: 1; margin-bottom: 8px; }
.footer-logo-word { font-family: 'Cormorant Garamond', serif; font-size: 38px; font-weight: 600; letter-spacing: 0.08em; color: var(--bg); }
.footer-logo-arch { display: block; width: 100%; height: 10px; color: var(--gold); margin-top: 4px; }
.footer-logo-tag { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-top: 24px; max-width: 300px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a, .footer-col span { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bot {
  max-width: 1440px; margin: 40px auto 0;
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.4);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 20, 35, 0.95);
  z-index: 1000; display: none; flex-direction: column;
  opacity: 0; transition: opacity 0.3s ease;
}
.lightbox.show { display: flex; opacity: 1; }
.lightbox-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 40px; color: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lightbox-head .title-block .mono-label { color: var(--gold); margin-bottom: 4px; display: block; }
.lightbox-head .title-block h4 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; }
.lightbox-close {
  width: 44px; height: 44px; background: transparent;
  border: 1px solid rgba(255,255,255,0.3); color: var(--bg);
  font-size: 18px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: var(--gold); border-color: var(--gold); }
.lightbox-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; padding: 40px; min-height: 0;
}
.lightbox-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: var(--bg); width: 52px; height: 52px; cursor: pointer;
  font-size: 20px; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: var(--gold); border-color: var(--gold); }
.lightbox-nav.prev { left: 40px; }
.lightbox-nav.next { right: 40px; }
.lightbox-counter {
  padding: 16px 40px; text-align: center;
  color: rgba(255,255,255,0.5); font-size: 12px;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.lightbox-thumbs {
  display: flex; gap: 8px; padding: 0 40px 24px; overflow-x: auto; justify-content: center;
}
.lightbox-thumbs img {
  width: 60px; height: 40px; object-fit: cover; cursor: pointer;
  opacity: 0.4; transition: opacity 0.2s; flex-shrink: 0;
}
.lightbox-thumbs img.active { opacity: 1; outline: 2px solid var(--gold); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 60px 40px; }
  .hero-right { min-height: 60vh; }
  .section { padding: 100px 40px; }
  .quality, .contact-section { padding: 80px 40px; }
  .about { grid-template-columns: 1fr; gap: 60px; }
  .about-badge { left: 20px; }
  .values { grid-template-columns: 1fr; }
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-img { order: unset; }
  .project:nth-child(even) .project-info { order: unset; }
  .quality-head { grid-template-columns: 1fr; gap: 24px; }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 60px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .quality-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px; }
  .about-locations { grid-template-columns: 1fr; gap: 20px; }
}
