/* ---------- Palette (pulled from the artwork) ---------- */
:root {
  --bg: #121315;          /* deep charcoal */
  --bg-alt: #17191b;
  --surface: #1c1f21;
  --line: #2a2e31;
  --text: #ece6df;
  --muted: #9a958f;
  --rust: #c06a45;        /* earth */
  --rust-soft: #8f4a2e;
  --teal: #4f8a96;        /* sea */
  --forest: #5f7a5a;
  --radius: 14px;
  --wrap: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--rust); text-decoration: none; }
a:hover { color: #e08a63; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 19, 21, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); min-width: 0; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: conic-gradient(from 200deg, var(--rust), var(--forest), var(--teal), var(--rust));
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; gap: 1.6rem; }
.nav a { color: var(--muted); font-size: .92rem; font-weight: 500; letter-spacing: .02em; }
.nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,19,21,.55) 0%, rgba(18,19,21,.80) 60%, var(--bg) 100%),
    url("images/untitled-terrain-no-1.jpg") center 35% / cover no-repeat;
  filter: saturate(1.05);
  transform: scale(1.04);
}
.hero-inner { position: relative; padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 6.5rem); text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; color: #d9b8a4; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.1rem, 6.5vw, 4.4rem); letter-spacing: -.01em; overflow-wrap: anywhere; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.6vw, 1.45rem); color: #d8d2cb; margin: .8rem 0 2rem; }
.btn {
  display: inline-block; padding: .75rem 1.5rem; border-radius: 999px;
  background: var(--rust); color: #fff; font-weight: 600; font-size: .92rem; letter-spacing: .02em;
  box-shadow: 0 6px 24px rgba(192,106,69,.3);
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: #d07a54; color: #fff; transform: translateY(-1px); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.section h2::after {
  content: ""; display: block; width: 44px; height: 3px; margin-top: .8rem; border-radius: 2px;
  background: linear-gradient(90deg, var(--rust), var(--teal));
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head p { margin: 0; font-size: .9rem; }

/* ---------- Gallery ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  display: flex; flex-direction: column; text-align: left;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: inherit; font: inherit; cursor: zoom-in; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-3px); border-color: rgba(192,106,69,.55);
  box-shadow: 0 14px 40px rgba(0,0,0,.45); outline: none;
}
.card-media { aspect-ratio: 4 / 5; overflow: hidden; background: #0d0e0f; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1rem 1.15rem 1.2rem; }
.card-body h3 { font-size: 1.15rem; }
.card-body p { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.card-soon {
  cursor: default; border-style: dashed; background: transparent;
  align-items: center; justify-content: center; min-height: 240px;
}
.card-soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.soon-inner { text-align: center; color: var(--muted); }
.soon-mark {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 1.4rem; color: var(--teal); margin-bottom: .6rem;
}
.soon-inner p { margin: 0; font-size: .92rem; letter-spacing: .02em; }

.note { margin: 2rem 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- About / Contact ---------- */
.about, .contact { max-width: 720px; }
.about-body { margin-top: 1.5rem; }
.about-body p, .contact p { color: #cfc9c2; }
.placeholder-tag {
  display: inline-block; margin: 1.4rem 0 .4rem; padding: .2rem .65rem; border-radius: 999px;
  font-size: .72rem !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #e5b49b !important; background: rgba(192,106,69,.12); border: 1px dashed rgba(192,106,69,.5);
}
.about-body .placeholder-tag { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.contact-list li {
  display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap;
  padding: .85rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: #cfc9c2;
}
.contact-list span { min-width: 90px; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; text-align: center; }
.site-footer p { margin: 0; color: var(--muted); font-size: .85rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 3.5rem 1rem 1.5rem;
  background: rgba(8, 9, 10, .94);
  animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; }
.lb-figure img { max-height: calc(100vh - 11rem); width: auto; max-width: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-figure figcaption { text-align: center; margin-top: 1rem; }
.lb-figure h3 { font-size: 1.25rem; }
.lb-figure p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.lb-close, .lb-nav {
  background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--line);
  border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1;
  width: 46px; height: 46px; display: grid; place-items: center; flex: none;
  transition: background .2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(192,106,69,.35); }
.lb-close { position: absolute; top: 1rem; right: 1rem; }
.lb-nav[hidden] { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .header-inner { height: auto; padding: .8rem 0; flex-direction: column; gap: .45rem; }
  .nav { gap: 1.4rem; }
  .grid { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: 1rem; }
  .lb-prev { left: 1rem; } .lb-next { right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Gallery layout refinements ---------- */
.grid { grid-template-columns: repeat(auto-fill, minmax(300px, 360px)); justify-content: center; }
#gallery .section-head { flex-direction: column; align-items: center; text-align: center; gap: .9rem; }
#gallery .section-head h2::after { margin-inline: auto; }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .card-soon { min-height: 140px; }
}

/* ---------- Social icons ---------- */
.social { display: flex; gap: .5rem; align-items: center; }
.social a {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s, background .2s;
}
.social a:hover { color: var(--text); border-color: var(--rust); background: rgba(192,106,69,.15); }
.social svg { width: 15px; height: 15px; }
.header-inner .nav { margin-left: auto; margin-right: .6rem; }
.social-footer { justify-content: center; margin-bottom: 1rem; }
@media (max-width: 640px) {
  .site-header .social { display: none; } /* footer + Contact still show it on mobile */
  .header-inner .nav { margin: 0; }
}
.contact-list li { display: grid; grid-template-columns: 92px 1fr; gap: .75rem; flex-wrap: initial; }
.contact-list span { min-width: 0; }

/* ---------- 4+ piece gallery ---------- */
.grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); justify-content: stretch; }
.card-media { aspect-ratio: 1 / 1; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

/* ---------- Buttons with icons / CTA ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid rgba(236,230,223,.25); box-shadow: none; }
.btn-ghost:hover { background: rgba(79,138,150,.22); border-color: var(--teal); color: #fff; }
.btn-sm { padding: .6rem 1.1rem; font-size: .86rem; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.cta-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.stat { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 1.4rem 0 0; font-size: .9rem; color: var(--muted) !important; }
.stat a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.stat svg { width: 14px; height: 14px; }
.placeholder-inline { color: #e5b49b; font-style: normal; opacity: .85; }
.contact-list a { overflow-wrap: anywhere; }
.social { gap: .4rem; }
@media (max-width: 640px) {
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; max-width: 280px; }
  .hero-actions { flex-direction: column; align-items: center; }
}
@media (max-width: 640px) {
  .site-header .social { display: flex; }
  .site-header .social a { width: 30px; height: 30px; }
  .site-header .social svg { width: 13px; height: 13px; }
  .header-inner { gap: .4rem; }
}
.contact-list .emails { display: flex; flex-direction: column; gap: .2rem; min-width: 0; font-size: inherit; text-transform: none; letter-spacing: normal; font-weight: 400; color: inherit; }
.about { max-width: 780px; }
.cta-row { gap: .6rem; }
.contact-list li { grid-template-columns: 112px 1fr; } .contact-list li > span:first-child { white-space: nowrap; }

/* White-background pieces (light: true in script.js) */
.card-media--light { background: #e6e0d8; }
.card-media--light img { mix-blend-mode: multiply; }
/* Keep card heights tidy — full description shows in the lightbox */
.card-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
