/* JMACK BUILDS — Shared Styles v2
   Typography: Manrope (sans) + Instrument Serif (display only)
   Refined, established, modern — no italic emphasis */

:root {
  --ink: #0E0E0C;
  --ink-2: #1A1A18;
  --ink-3: #2C2C28;
  --stone: #F4F1EA;
  --stone-2: #E8E3D8;
  --stone-3: #D4CFC0;
  --paper: #FAF8F2;
  --rule: rgba(14,14,12,0.12);
  --rule-2: rgba(14,14,12,0.06);
  --muted: #565248;
  --green: #1F5F4A;
  --green-deep: #0F3D2E;
  --green-light: #E1EFE8;
  --amber: #C8861D;
  --red: #B33A2A;
  --brick: #8B4A3A;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }

.announce {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.announce .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  margin: 0 12px 2px;
  vertical-align: middle;
  opacity: 0.6;
}

.nav {
  background: rgba(250,248,242,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img { width: 52px; height: 52px; }
.nav-logo-text { font-weight: 800; font-size: 17px; letter-spacing: 0.06em; line-height: 1; }
.nav-logo-sub { font-size: 10px; letter-spacing: 0.2em; color: var(--muted); font-weight: 500; margin-top: 3px; }
.nav-links {
  display: flex; align-items: center; gap: 36px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
}
.nav-links a {
  color: var(--ink-3); position: relative; padding: 6px 0; transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 700; }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1.5px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.nav-links a:not(.nav-cta).active::after,
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 12px 22px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; font-size: 11.5px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--green) !important; }
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; margin: -10px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 20px;
}
.eyebrow .line { width: 32px; height: 1px; background: var(--muted); }
.eyebrow.light { color: rgba(255,255,255,0.7); }
.eyebrow.light .line { background: rgba(255,255,255,0.7); }

.h-display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96; letter-spacing: -0.025em;
}
.h-section {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.h-large {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1; letter-spacing: -0.015em;
}

.intro-text {
  font-size: 17px; color: var(--muted);
  max-width: 580px; line-height: 1.6; font-weight: 400;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 32px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: all 0.25s ease; border: none; font-family: var(--sans);
}
.btn-primary { background: #fff; color: var(--ink); }
.btn-primary:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--green); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); }
.arrow { width: 18px; height: 1px; background: currentColor; position: relative; }
.arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

section { padding: 120px 0; }
section.tight { padding: 80px 0; }

.page-header {
  background: var(--ink); color: #fff;
  padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(31,95,74,0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(31,95,74,0.15) 0%, transparent 50%);
}
.page-header-inner { position: relative; z-index: 2; }
.page-header .eyebrow { color: var(--stone-2); }
.page-header .eyebrow .line { background: var(--stone-2); }
.page-header h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 6.5vw, 88px);
  line-height: 0.98; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 24px; max-width: 920px;
}
.page-header p {
  font-size: 18px; color: rgba(255,255,255,0.75);
  max-width: 620px; line-height: 1.6;
}
.breadcrumb {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 28px; font-weight: 600;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 10px; opacity: 0.4; }

.illus {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  background: var(--stone);
}
.illus svg { width: 100%; height: 100%; display: block; }
.illus img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(.2,.6,.2,1); }
.project:hover .illus img { transform: scale(1.05); }

.illus-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 60px 22px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(14,14,12,0.85) 100%);
  color: #fff; pointer-events: none; z-index: 2;
}
.illus-label h4 {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.illus-label p {
  font-size: 12px; color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em; font-weight: 500;
}
.tag {
  position: absolute; top: 18px; left: 18px;
  background: rgba(255,255,255,0.95); color: var(--ink);
  padding: 6px 12px; font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700;
  z-index: 3;
}
.tag.green { background: var(--green); color: #fff; }

.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 70px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.value { padding: 48px 32px; border-right: 1px solid var(--rule); }
.value:last-child { border-right: none; }
.value-num {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green); margin-bottom: 24px;
}
.value-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.value-desc { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

footer {
  background: #050504; color: rgba(255,255,255,0.75);
  padding: 80px 0 30px; font-size: 13px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 50px;
}
.footer-brand img { width: 64px; margin-bottom: 20px; }
.footer-brand p { line-height: 1.6; max-width: 320px; }
.footer-col h5 {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px; font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 6px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; font-size: 12px;
}
.footer-badges { display: flex; gap: 12px; margin-top: 24px; }
.footer-badges img { width: 48px; height: 48px; }

.cta-strip {
  background: var(--ink); color: #fff;
  padding: 100px 0; text-align: center;
}
.cta-strip h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 16px; color: #fff;
}
.cta-strip p {
  color: rgba(255,255,255,0.7); font-size: 16.5px;
  max-width: 560px; margin: 0 auto 36px; line-height: 1.6;
}

@media (max-width: 1024px) {
  .container, .container-narrow { padding: 0 24px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(2) { border-right: none; }
  .value:nth-child(1), .value:nth-child(2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -24px rgba(14,14,12,0.3);
    padding: 4px 24px 18px;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
  }
  .nav.menu-open .nav-links { max-height: 70vh; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 15px 2px; font-size: 16px; border-bottom: 1px solid var(--rule); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta {
    text-align: center; margin-top: 14px; padding: 16px 22px;
    border-bottom: none !important; border-radius: 2px;
  }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .value { border-right: none !important; border-bottom: 1px solid var(--rule); }
  .value:last-child { border-bottom: none; }
}
