/* ============================================================
   Authentic Environments — rebuilt static site
   Design language: sedimentary strata + field-log documentation,
   drawn from the craft itself (rockwork, geology, construction).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #211d19;
  --ink-soft: #4a4239;
  --paper: #f2ede1;
  --paper-soft: #faf7f0;
  --clay: #9c522a;
  --clay-deep: #7c3f20;
  --moss: #57624a;
  --basalt: #1c1815;
  --line: #d8cdb6;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--clay-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  color: var(--basalt);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); text-transform: none; letter-spacing: 0; }

p { margin: 0 0 1.1em; color: var(--ink-soft); max-width: 68ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-deep);
  display: block;
  margin-bottom: 0.6em;
}

/* ---- strata band : the signature element ---- */
.strata {
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--basalt) 0 18%,
    var(--clay) 18% 40%,
    var(--moss) 40% 58%,
    var(--line) 58% 78%,
    var(--basalt) 78% 100%
  );
}
.strata.thin { height: 5px; }

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--basalt);
}
.brand span { color: var(--clay-deep); }
.brand:hover { text-decoration: none; }

.contact-strip {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: right;
  display: none;
}
@media (min-width: 760px) { .contact-strip { display: block; } }

nav.primary-nav {
  background: var(--basalt);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}
.nav-inner a {
  display: inline-block;
  padding: 12px 0;
  color: #efe7d6;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-inner a:hover { color: var(--line); text-decoration: none; }
.nav-inner a.current { color: var(--line); border-bottom: 2px solid var(--clay); }

/* ---- Services dropdown ---- */
.nav-item.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-item.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-item.has-dropdown > a::after {
  content: "\25BE";
  font-size: 0.7em;
  opacity: 0.75;
  position: relative;
  top: 1px;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--basalt);
  border: 1px solid #3a332c;
  border-top: 2px solid var(--clay);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 30;
}
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block;
  padding: 11px 20px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
  color: #efe7d6;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: var(--line);
  text-decoration: none;
}

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,24,21,0.15) 0%, rgba(28,24,21,0.82) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 60px 28px 46px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero h1 { color: #fdf9ef; margin-bottom: 0.2em; }
.hero .eyebrow { color: #fdf9ef; }
.hero p.lede {
  color: #ece4d3;
  font-size: 1.15rem;
  max-width: 56ch;
}
.hero-small { min-height: 36vh; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 2px solid var(--clay);
  color: var(--clay-deep);
  background: transparent;
  margin-top: 6px;
}
.btn:hover { background: var(--clay); color: #fff; text-decoration: none; }
.btn.solid { background: var(--clay-deep); color: #fff; }
.btn.solid:hover { background: #5c2f18; }
.btn.light { border-color: #fdf9ef; color: #fdf9ef; }
.btn.light:hover { background: #fdf9ef; color: var(--basalt); }

/* ---- sections ---- */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-head { max-width: 70ch; margin-bottom: 2.2em; }
.bg-basalt { background: var(--basalt); color: #efe7d6; }
.bg-basalt h2, .bg-basalt h3 { color: #fdf9ef; }
.bg-basalt .card-body h3 { color: var(--basalt); }
.bg-basalt p { color: #cfc4ac; }
.bg-basalt .card-body p { color: var(--ink-soft); }
.bg-soft { background: var(--paper-soft); }

/* ---- service / feature grid ---- */
.grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
}
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 26px; }
.card-body h3 { margin-bottom: 0.4em; }
.card-body p { font-size: 0.96rem; }
.card-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- photo gallery ---- */
.photo-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--line);
}
.photo-grid figure { margin: 0; }
.photo-grid figcaption {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.35;
}

/* ---- lightbox ---- */
.photo-grid img.lightbox-trigger { cursor: zoom-in; transition: opacity .15s ease; }
.photo-grid img.lightbox-trigger:hover { opacity: 0.87; }
.photo-grid img.lightbox-trigger:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 24, 21, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}
.lightbox-overlay.open { display: flex; }
body.lightbox-locked { overflow: hidden; }

.lightbox-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  border: 2px solid var(--line);
}
.lightbox-caption {
  margin-top: 14px;
  color: #efe7d6;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-align: center;
  max-width: 70ch;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: #fdf9ef;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 16px;
  line-height: 1;
}
.lightbox-close { top: 16px; right: 20px; font-size: 2.4rem; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--clay); }
.lightbox-close:focus-visible, .lightbox-prev:focus-visible, .lightbox-next:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { font-size: 1.4rem; padding: 8px 10px; }
  .lightbox-close { font-size: 2rem; top: 8px; right: 8px; }
}

/* ---- field log (project credit lists) ---- */
.field-log {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  border-left: 3px solid var(--clay);
  padding-left: 20px;
  margin: 1.6em 0 2.2em;
}
.field-log div {
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}
.field-log div:last-child { border-bottom: none; }
.field-log b { color: var(--ink); font-weight: 600; }

/* ---- stat row ---- */
.stat-row {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 2em 0;
}
.stat-row div { border-top: 3px solid var(--clay); padding-top: 10px; }
.stat-row .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--basalt);
  display: block;
  line-height: 1;
}
.stat-row .label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- two column ---- */
.two-col {
  display: grid;
  gap: 48px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.two-col img { width: 100%; border: 1px solid var(--line); }
.two-col img.logo-mark { border: none; max-width: 320px; margin: 0 auto; }

/* ---- video grid ---- */
.video-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.video-grid figure { margin: 0; }
.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--basalt);
  border: 1px solid var(--line);
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-grid figcaption {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  margin-top: 8px;
  color: var(--ink-soft);
}

/* ---- contact form ---- */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  max-width: 640px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--clay); border-color: var(--clay); }
textarea { resize: vertical; min-height: 130px; }

/* ---- blog list ---- */
.post {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.post img { aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 620px) { .post { grid-template-columns: 1fr; } }
.post .eyebrow { margin-bottom: 0.3em; }

/* ---- single article page ---- */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.article-meta {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 3.6em;
  padding-bottom: 1.6em;
  border-bottom: 1px solid var(--line);
}
.back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 2.4em 0 1.8em;
}
.back-link.back-link-top {
  margin: 0 0 3.2em;
}
.article-lede {
  font-size: 1.2rem;
  color: var(--ink);
}
.article-body p { max-width: none; }
.pull-quote {
  border-left: 4px solid var(--clay);
  padding: 2px 0 2px 28px;
  margin: 2.4em 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
  color: var(--basalt);
}
.field-note {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--moss);
  padding: 20px 24px;
  margin: 2.4em 0;
}
.field-note .eyebrow { color: var(--moss); }
.field-note p { margin-bottom: 0; max-width: none; }
.article-figure { margin: 2.6em 0; }
.article-figure img { width: 100%; border: 1px solid var(--line); }
.article-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---- footer ---- */
footer.site-footer {
  background: var(--basalt);
  color: #cfc4ac;
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-bottom: 34px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: #efe7d6;
  margin: 0 0 14px;
}
footer.site-footer a { color: #cfc4ac; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #3a332c;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #b3a68e;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.social-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.92rem; }

/* ---- utility ---- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
