/* =========================================================
   Exodus 31 Design — design system
   ========================================================= */
:root {
  --bg:        #e8e2d6;   /* warm cream */
  --bg-soft:   #ede7db;
  --panel:     #d8d2c4;   /* card panel */
  --panel-2:   #cfc8b9;
  --ink:       #1d1a16;
  --ink-soft:  #4a4538;
  --muted:     #7a7567;
  --line:      #b9b1a0;
  --dark:      #1f1a14;   /* pill / footer */
  --accent:    #2b251c;
  --radius:    28px;
  --radius-lg: 36px;
  --serif: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(29,26,22,.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 22px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.site-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  white-space: nowrap;
}
.primary-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
}
.nav-link {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: opacity .2s;
}
.nav-link:hover { opacity: .65; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
}
.btn-pill {
  display: inline-block;
  background: var(--dark);
  color: #f5efe2;
  font-family: var(--serif);
  font-size: 16px;
  padding: 12px 26px;
  border-radius: 999px;
  transition: transform .15s ease, background .2s ease;
}
.btn-pill:hover { background: #000; transform: translateY(-1px); }
.btn-pill.btn-lg { font-size: 18px; padding: 16px 34px; }
.btn-pill.btn-light { background: var(--bg); color: var(--ink); border: 1px solid var(--ink); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 32px; padding: 0; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .2s; }

/* ---------- Layout ---------- */
.section { padding: 96px 40px; }
.section-tight { padding: 60px 40px; }
.container { max-width: 1400px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.005em; margin: 0; color: var(--ink); }
.h-display { font-size: clamp(3.2rem, 8vw, 7rem); letter-spacing: -0.012em; line-height: 0.98; }
.h-large   { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.h-mid     { font-size: clamp(2rem, 3.4vw, 3rem); }
.h-small   { font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 500; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.lead { font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.55rem); line-height: 1.4; color: var(--ink-soft); }
.body-md { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.kerned { letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; font-weight: 500; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  padding: 70px 40px 100px;
}
.hero-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: end;
}
.hero-title { font-size: clamp(3.4rem, 8.5vw, 7.4rem); letter-spacing: -0.015em; }
.hero-italic { font-style: italic; font-weight: 400; color: var(--ink-soft); }
.hero-side { padding-bottom: 12px; }
.hero-side p { font-family: var(--serif); font-size: clamp(1.2rem, 1.5vw, 1.45rem); line-height: 1.45; color: var(--ink-soft); margin: 0 0 28px; }
.hero-image {
  margin-top: 56px;
  max-width: 1400px;
  margin-left: auto; margin-right: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21/9;
  background: var(--panel);
  position: relative;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Card / panel ---------- */
.card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 44px;
  overflow: hidden;
  position: relative;
}
.card .card-title { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; margin-bottom: 24px; }
.card .card-body { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); max-width: 38ch; }
.card .card-image {
  margin-top: 36px;
  aspect-ratio: 4/3;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #b9aa90, #d8c9ad);
}

/* ---------- Image frames ---------- */
.imgph {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: var(--panel);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.imgph.tall { aspect-ratio: 4/5; }
.imgph.wide { aspect-ratio: 16/10; }
.imgph.hero { aspect-ratio: 21/9; border-radius: var(--radius-lg); }
.imgph img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ---------- Past projects strip ---------- */
.projects-header {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px;
  margin-bottom: 48px; align-items: end;
}
.projects-header h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.projects-header p { font-size: clamp(1rem, 1.2vw, 1.15rem); color: var(--ink-soft); line-height: 1.5; max-width: 56ch; }

.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.proj-card { display: block; }
.proj-card .imgph { aspect-ratio: 4/3.2; }
.proj-card .meta { margin-top: 18px; }
.proj-card .meta .label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.proj-card .meta .name { font-family: var(--serif); font-size: 1.5rem; margin-top: 4px; }

/* ---------- About / mission block ---------- */
.mission {
  background: var(--bg);
  padding: 120px 40px;
}
.mission-body {
  max-width: 1280px; margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.002em;
}
.mission-body em { font-style: italic; color: var(--ink-soft); }

/* ---------- Services row ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.svc-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex; flex-direction: column;
  min-height: 540px;
}
.svc-card h3 { font-size: clamp(2rem, 3.2vw, 2.8rem); margin-bottom: auto; max-width: 12ch; }
.svc-card p { color: var(--ink-soft); font-size: 15.5px; max-width: 40ch; margin: 24px 0; }
.svc-card .svc-image {
  margin-top: 24px;
  aspect-ratio: 16/9;
  border-radius: 22px;
  background: var(--panel-2);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.svc-card .svc-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Contact ---------- */
.contact {
  padding: 100px 40px 120px;
}
.contact-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 80px;
}
.contact h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); margin-bottom: 24px; }
.contact-intro { font-family: var(--serif); font-size: clamp(1.15rem, 1.45vw, 1.4rem); line-height: 1.4; color: var(--ink-soft); margin-bottom: 36px; }

.form { display: grid; gap: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 500;
}
.field label .req { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  padding: 10px 0;
  outline: none;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 14px) 18px, calc(100% - 9px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.honey { position: absolute; left: -9999px; }
.form-actions { margin-top: 12px; }
.form-actions button {
  background: var(--dark);
  color: #f5efe2;
  font-family: var(--serif);
  font-size: 17px;
  padding: 16px 42px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s;
}
.form-actions button:hover { background: #000; }
.form-msg { padding: 18px 22px; border-radius: 14px; margin-bottom: 24px; font-size: 15px; }
.form-msg.ok { background: #d6e3cf; color: #2c3a1f; }
.form-msg.err { background: #e8d3c8; color: #5a2f1a; }

/* ---------- Project page ---------- */
.proj-hero {
  padding: 60px 40px 0;
  max-width: 1400px; margin: 0 auto;
}
.proj-hero .imgph { aspect-ratio: 21/10; border-radius: var(--radius-lg); }
.proj-meta {
  max-width: 1400px; margin: 32px auto 0;
  padding: 0 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.proj-meta .item .kerned { display: block; margin-bottom: 6px; }
.proj-meta .item .val { font-family: var(--serif); font-size: 1.35rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #d9d2c2;
  padding: 84px 40px 28px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.foot-title { font-family: var(--serif); font-size: 28px; color: #f3ecde; margin-bottom: 14px; }
.foot-tag { font-family: var(--serif); font-style: italic; color: #beb39d; font-size: 17px; max-width: 28ch; }
.foot-h { font-family: var(--serif); font-size: 17px; color: #f3ecde; margin-bottom: 18px; letter-spacing: 0.02em; }
.foot-col p { margin: 0 0 10px; font-size: 14.5px; color: #b8af9a; }
.foot-col a { color: #d9d2c2; }
.foot-link { display: block; font-size: 14.5px; margin-bottom: 10px; color: #b8af9a; transition: color .15s; }
.foot-link:hover { color: #f3ecde; }
.footer-bar {
  max-width: 1400px; margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid #3a3327;
  display: flex; justify-content: space-between;
  font-size: 12.5px; color: #8a8170; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .header-inner { padding: 16px 22px; grid-template-columns: auto 1fr auto; gap: 16px; }
  .primary-nav {
    position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column; gap: 22px;
    padding: 40px;
    transform: translateY(-110%);
    transition: transform .25s ease;
    align-items: flex-start;
  }
  body.nav-open .primary-nav { transform: translateY(0); }
  .nav-link { font-size: 24px; }
  .nav-toggle { display: block; }
  .btn-pill { display: none; }
  .section { padding: 60px 22px; }
  .hero { padding: 32px 22px 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-2, .grid-3, .proj-grid, .svc-grid { grid-template-columns: 1fr; gap: 22px; }
  .projects-header { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
  .mission { padding: 70px 22px; }
  .contact { padding: 60px 22px 80px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .svc-card { padding: 32px; min-height: auto; }
  .card { padding: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .proj-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; gap: 8px; align-items: flex-start; }
  .proj-meta { grid-template-columns: 1fr; }
}
