/* ===== Brand colors & fonts (from Brand Directions: navy & brass) ===== */
:root {
  --navy: #1c2a44;
  --navy-deep: #141d31;
  --brass: #b08d57;
  --brass-light: #c9a66b;
  --cream: #f7f3ec;
  --stone: #ece6db;
  --ink: #1f2433;
  --muted: #5f6472;
  --line: #ddd5c6;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --header-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; color: var(--navy); }
h1 { font-size: clamp(3rem, 6.4vw, 5.4rem); font-weight: 400; letter-spacing: -.01em; }
h1 em { font-style: italic; color: var(--brass-light); }
h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.65rem; margin-bottom: .6rem; }
p + p { margin-top: 1rem; }

.eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--brass);
  color: var(--white);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border: 1px solid var(--brass);
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-small { padding: .7rem 1.3rem; font-size: .7rem; }
.site-header .btn-small:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

/* ===== Photos =====
   Each .photo shows its image (--img) when one exists; otherwise a stone placeholder with the logo mark. */
.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--stone);
  background-image:
    var(--img, none),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 66'%3E%3Cg opacity='.45'%3E%3Cg fill='none' stroke='%23b08d57' stroke-width='2.2' stroke-linejoin='miter'%3E%3Cpath d='M5 64 V28 H8 V24 H15 V28 H18 V64'/%3E%3Cpath d='M22 64 V18 H24 V12 H27 V7 H29.5 V1 H30.5 V7 H33 V12 H36 V18 H38 V64'/%3E%3Cpath d='M42 64 V21 L55 15 V64'/%3E%3Cpath d='M1 64 H59'/%3E%3C/g%3E%3Crect x='8' y='32' width='2.5' height='3' fill='%23b08d57'/%3E%3Crect x='12.5' y='32' width='2.5' height='3' fill='%23b08d57'/%3E%3Crect x='8' y='38' width='2.5' height='3' fill='%23b08d57'/%3E%3Crect x='12.5' y='38' width='2.5' height='3' fill='%23b08d57'/%3E%3Crect x='8' y='44' width='2.5' height='3' fill='%23b08d57'/%3E%3Crect x='12.5' y='44' width='2.5' height='3' fill='%23b08d57'/%3E%3Crect x='8' y='50' width='2.5' height='3' fill='%23b08d57'/%3E%3Crect x='12.5' y='50' width='2.5' height='3' fill='%23b08d57'/%3E%3Crect x='8' y='56' width='2.5' height='3' fill='%23b08d57'/%3E%3Crect x='12.5' y='56' width='2.5' height='3' fill='%23b08d57'/%3E%3Cpath d='M26 22 V60 M30 22 V60 M34 22 V60 M45 27 H52 M45 33 H52 M45 39 H52 M45 45 H52 M45 51 H52 M45 57 H52' fill='none' stroke='%23b08d57' stroke-width='1.21'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #efe9de 0%, #ddd3c2 100%);
  background-size: cover, 44px, cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.photo.tall { aspect-ratio: 4 / 5; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  transition: background .35s, box-shadow .35s, height .35s;
}
.site-header.scrolled { background: var(--navy); box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 30px rgba(0,0,0,.18); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: .95rem; text-decoration: none; color: var(--white); }
.logo-mark { width: 30px; height: 33px; color: var(--brass-light); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .32em; text-transform: uppercase; margin-right: -.32em; }
.logo-sub { font-family: "Jost", var(--sans); font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; margin-top: .45rem; color: rgba(255,255,255,.75); }

.site-nav { display: flex; align-items: center; gap: 2.1rem; }
.site-nav a { color: var(--white); text-decoration: none; font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.site-nav a:not(.btn):hover { color: var(--brass-light); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--white); margin: 6px 0; transition: transform .3s, opacity .3s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(100deg, rgba(20,29,49,.92) 0%, rgba(20,29,49,.6) 55%, rgba(20,29,49,.35) 100%),
    var(--img, none),
    radial-gradient(ellipse at 85% 30%, rgba(176,141,87,.28) 0%, rgba(176,141,87,0) 55%),
    linear-gradient(135deg, #141d31 0%, #1c2a44 60%, #26355a 100%);
  background-size: cover;
  background-position: center;
}
.hero-content { position: relative; padding-top: var(--header-h); }
.hero h1 { color: var(--white); margin-bottom: 1.6rem; }
.hero .eyebrow { color: var(--brass-light); }
.hero .lead { font-size: 1.15rem; font-weight: 300; max-width: 580px; color: rgba(255,255,255,.85); margin-bottom: 2.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue { position: absolute; left: 50%; bottom: 36px; width: 1px; height: 56px; background: rgba(255,255,255,.2); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--brass-light); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }

/* ===== Stats ===== */
.stats { background: var(--navy-deep); color: var(--white); padding: 56px 0; border-top: 1px solid rgba(205,172,116,.25); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 0 1rem; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
.stat-num { display: block; font-family: var(--serif); font-size: 2.9rem; line-height: 1; color: var(--brass-light); }
.stat-label { display: block; margin-top: .7rem; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ===== Sections ===== */
.section { padding: 130px 0; }
.section-stone { background: var(--stone); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.78); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .eyebrow { color: var(--brass-light); }
.section-navy .section-sub { color: rgba(255,255,255,.7); }
.section-head { max-width: 660px; margin-bottom: 4rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.ornament { width: 34px; height: 37px; color: var(--brass-light); margin-bottom: 1.4rem; }

.split { display: grid; grid-template-columns: 5fr 6fr; gap: 6rem; align-items: center; }
.split-text > p { color: var(--muted); }
.split-media { position: relative; isolation: isolate; }
.split-media::after { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--brass); z-index: -1; }
.signature { font-family: var(--serif); font-size: 1.6rem; color: var(--navy) !important; margin-top: 2rem !important; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.signature span { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); margin-top: .3rem; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 6rem; align-items: start; }
.about-head h2 { margin-bottom: 0; }
.about-lead { font-family: var(--serif); font-size: 1.9rem; line-height: 1.3; color: var(--navy); margin-bottom: 1.6rem; }
.about-body p:not(.about-lead) { color: var(--muted); }

/* ===== Partner with us ===== */
.partner { display: grid; grid-template-columns: 5fr 6fr; gap: 6rem; align-items: start; }
.partner-intro > p:not(.eyebrow) { color: var(--muted); }
.partner-intro .btn { margin-top: 2.2rem; }
.partner-points { list-style: none; border-bottom: 1px solid var(--line); }
.partner-points li { display: grid; grid-template-columns: 3.2rem 1fr; padding: 1.9rem 0; border-top: 1px solid var(--line); }
.partner-num { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--brass); line-height: 1.2; }
.partner-points h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.partner-points p { color: var(--muted); font-size: .97rem; }

/* ===== Standard ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.pillar { padding: 3rem 2.6rem 0; text-align: center; }
.pillar + .pillar { border-left: 1px solid rgba(255,255,255,.14); }
.pillar-num { display: block; font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--brass-light); margin-bottom: 1rem; }
.pillar p { font-size: .97rem; }

/* ===== Services ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5rem; }
.service { border-top: 1px solid var(--navy); padding-top: 2rem; }
.service-num { display: block; font-size: .7rem; letter-spacing: .26em; color: var(--brass); margin-bottom: 1.4rem; }
.service p { color: var(--muted); font-size: .98rem; }

/* ===== Project cards (rendered by script.js from projects.js) ===== */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem 2.2rem; }
.project-card {
  display: block; width: 100%;
  background: none; border: 0; padding: 0;
  text-align: left; color: inherit; cursor: pointer;
}
.project-card .photo { transition: transform .7s ease; }
.project-card .photo-wrap { position: relative; overflow: hidden; }
.project-card:hover .photo, .project-card:focus-visible .photo { transform: scale(1.03); }
.project-card:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; }
.project-card .view {
  position: absolute; inset: auto 0 0 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(20,29,49,.75));
  color: var(--white); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  opacity: 0; transition: opacity .35s;
}
.project-card:hover .view, .project-card:focus-visible .view { opacity: 1; }
.status {
  position: absolute; top: 14px; left: 14px;
  background: var(--navy); color: var(--brass-light);
  font-size: .62rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  padding: .45rem .75rem;
}
.project-card .tag { display: block; margin-top: 1.4rem; font-size: .66rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.project-card h3 { margin: .45rem 0 .25rem; font-size: 1.6rem; }
.project-card .meta { font-size: .88rem; color: var(--muted); }

/* ===== Sellers ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.6rem; }
.steps li { border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.8rem; }
.step-num { display: block; font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--brass-light); line-height: 1; margin-bottom: 1.1rem; }
.steps h3 { font-size: 1.5rem; }
.steps p { font-size: .95rem; }

/* ===== Contact ===== */
.contact { align-items: start; grid-template-columns: 1fr 1fr; }
.contact-card { margin-top: 2.6rem; padding: 2.2rem 0 0; border-top: 1px solid var(--line); }
.contact-name { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.contact-title { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); margin: .4rem 0 1.4rem !important; }
.contact-line { display: block; width: fit-content; text-decoration: none; font-size: 1.08rem; color: var(--ink); padding: .15rem 0; border-bottom: 1px solid transparent; }
.contact-line:hover { border-color: var(--brass); }
.contact-area { margin-top: 1.4rem !important; font-size: .8rem; letter-spacing: .08em; color: var(--muted); }
.social { display: flex; gap: .8rem; margin-top: 1.6rem; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); color: var(--navy); transition: border-color .25s, color .25s; }
.social a:hover { border-color: var(--brass); color: var(--brass); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-top: 2px solid var(--brass);
  box-shadow: 0 20px 60px rgba(29,42,69,.08);
  display: grid;
  gap: 1.3rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.contact-form label { display: grid; gap: .45rem; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.optional { font-weight: 400; color: var(--muted); letter-spacing: .1em; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink);
  padding: .85rem .95rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--cream);
  width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brass); background: var(--white); }
.contact-form .btn { justify-self: start; margin-top: .4rem; }
.form-status { font-size: .92rem; color: var(--brass); min-height: 1.2em; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.6); padding: 5rem 0 2.5rem; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 2.6rem; }
.footer-logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--white); }
.footer-mark { width: 44px; height: 48px; color: var(--brass-light); margin-bottom: 1.3rem; }
.footer-name { font-family: var(--serif); font-size: 2rem; letter-spacing: .36em; margin-right: -.36em; text-transform: uppercase; line-height: 1; }
.footer-sub { font-family: "Jost", var(--sans); display: flex; align-items: center; gap: 1rem; margin-top: .8rem; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.footer-sub i { width: 26px; height: 1px; background: var(--brass-light); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; }
.site-footer nav a { text-decoration: none; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.site-footer nav a:hover { color: var(--brass-light); }
.copyright { width: 100%; font-size: .75rem; letter-spacing: .06em; border-top: 1px solid rgba(255,255,255,.1); padding-top: 2rem; }

/* ===== Gallery pop-up ===== */
.lightbox {
  width: min(1160px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  margin: auto;
  border: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  overflow: auto;
}
.lightbox::backdrop { background: rgba(14,20,35,.86); }
.lb-body { display: grid; grid-template-columns: 1.7fr 1fr; }
.lb-stage { position: relative; background: var(--navy-deep); }
.lb-photo { aspect-ratio: 4 / 3; height: 100%; }
/* Show the whole photo (tall ones too) on navy, rather than cropping it */
.lb-photo { background-color: var(--navy-deep); background-size: contain, 44px, 0 0; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 0; background: rgba(20,29,49,.6); color: var(--white);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lb-nav:hover { background: var(--brass); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between;
  padding: .9rem 1.2rem;
  background: linear-gradient(transparent, rgba(20,29,49,.8));
  color: var(--white); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
}
.lb-info { padding: 3rem 2.6rem; }
.lb-title { font-size: 2.2rem; }
.lb-meta { font-size: .88rem; color: var(--muted); margin-bottom: 1.4rem; }
.lb-desc { color: var(--muted); font-size: .97rem; }
.lb-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 2rem; }
.lb-thumbs button { padding: 0; border: 2px solid transparent; cursor: pointer; background: none; }
.lb-thumbs button[aria-current="true"] { border-color: var(--brass); }
.lb-thumbs .photo { background-size: cover, 18px, cover; }
.lb-close {
  position: absolute; top: 10px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border: 0; background: none;
  font-size: 2rem; line-height: 1; color: var(--navy); cursor: pointer;
}
.lb-close:hover { color: var(--brass); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .site-nav { gap: 1.4rem; }
}

@media (max-width: 960px) {
  .services, .project-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split, .contact { grid-template-columns: 1fr; gap: 4rem; }
  .about, .partner { grid-template-columns: 1fr; gap: 2.6rem; }
  .about-lead { font-size: 1.6rem; }
  .split-media { max-width: 440px; }
  .pillars { grid-template-columns: 1fr; border-top: 0; }
  .pillar { padding: 2.4rem 0; border-top: 1px solid rgba(255,255,255,.14); }
  .pillar + .pillar { border-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
  .stat:nth-child(3) { border-left: 0; }
  .lb-body { grid-template-columns: 1fr; }
  .lb-photo { height: auto; }
  .lb-info { padding: 2rem 1.6rem; }
}

@media (max-width: 1100px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy);
    padding: .5rem 16px 1.6rem;
    transform: translateY(-120%);
    transition: transform .35s ease;
    z-index: -1;
  }
  .site-nav.open { transform: none; }
  .site-nav a { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
  .site-nav a.btn { margin-top: 1.2rem; text-align: center; border-bottom: 0; padding: 1rem; }
  .site-header.menu-open { background: var(--navy); }
  .menu-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 3rem; }
  .logo-name { font-size: 1.2rem; }
  .logo-sub { font-size: .5rem; }
  .logo-mark { width: 25px; height: 28px; }
  .services, .project-grid, .steps, .field-row { grid-template-columns: 1fr; }
  .services { gap: 2.6rem; }
  .split-media::after { inset: 14px -14px -14px 14px; }
  .split-media { margin-right: 14px; }
  .stat-num { font-size: 2.3rem; }
  .contact-form { padding: 1.8rem 1.4rem; }
  .contact-form .btn { justify-self: stretch; text-align: center; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .lightbox { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; }
  .lb-close { color: var(--white); background: rgba(20,29,49,.6); top: 10px; right: 10px; }
}

/* Hidden spam trap for the contact form */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
