:root {
  --ink: #17231f;
  --muted: #65736d;
  --paper: #fffdf8;
  --soft: #f2f5ef;
  --green: #1c6857;
  --green-dark: #10483d;
  --coral: #d76b4f;
  --gold: #d7a94c;
  --line: rgba(23, 35, 31, .12);
  --shadow: 0 20px 60px rgba(18, 48, 40, .12);
  --radius: 1.25rem;
  --container: min(1180px, calc(100% - 2rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .25;
  pointer-events: none;
  background-image: radial-gradient(rgba(28, 104, 87, .18) .6px, transparent .6px);
  background-size: 18px 18px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; transform: translateY(-200%); padding: .7rem 1rem; background: var(--ink); color: white; border-radius: .5rem; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,248,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.topline { background: var(--green-dark); color: white; font-size: .76rem; letter-spacing: .04em; }
.topline .container { min-height: 34px; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.topline a { color: white; text-decoration: none; }
.nav-wrap { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand img { width: 88px; height: 76px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: .3rem; }
.site-nav a { padding: .6rem .72rem; text-decoration: none; font-size: .78rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; border-radius: 99px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); background: rgba(28,104,87,.08); }
.site-nav .nav-cta { background: var(--green); color: white; padding-inline: 1rem; }
.site-nav .nav-cta:hover { color: white; background: var(--green-dark); }
.menu-button { display: none; place-items: center; border: 1px solid var(--line); background: rgba(28,104,87,.06); width: 46px; height: 46px; padding: 0; border-radius: 50%; color: var(--ink); cursor: pointer; }
.menu-button:hover { background: rgba(28,104,87,.12); }
.menu-icon { position: relative; display: block; width: 20px; height: 16px; }
.menu-icon span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 7px; }
.menu-icon span:nth-child(3) { top: 14px; }
.menu-button[aria-expanded="true"] .menu-icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] .menu-icon span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

main { min-height: 55vh; }
.hero { position: relative; overflow: hidden; background: var(--soft); }
.hero-slide { display: none; position: relative; }
.hero-slide.is-active { display: block; animation: fade .7s ease; }
.hero picture { position: relative; z-index: 1; display: block; width: 100%; }
.hero picture img { width: 100%; max-height: 720px; object-fit: cover; }
.banner-image { opacity: 0; transition: opacity .7s ease; }
.is-image-loaded .banner-image { opacity: 1; }
.banner-placeholder { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #eef3ed, #fffaf1 55%, #e6efe9); opacity: 1; transition: opacity .55s ease, visibility .55s ease; pointer-events: none; }
.banner-placeholder::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.62) 50%, transparent 70%); animation: placeholder-shimmer 1.5s ease-in-out infinite; }
.banner-placeholder img { width: clamp(76px, 10vw, 132px); height: auto; opacity: .38; filter: grayscale(1); }
.is-image-loaded .banner-placeholder { opacity: 0; visibility: hidden; }
@keyframes placeholder-shimmer { to { transform: translateX(100%); } }
.hero-overlay { position: absolute; inset: auto 0 0; padding: 7rem 0 2rem; background: linear-gradient(transparent, rgba(10,27,23,.64)); color: white; pointer-events: none; }
.hero-kicker { margin: 0; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: .72rem; }
.hero-controls { position: absolute; right: max(1rem, calc((100vw - 1180px)/2)); bottom: 1.8rem; z-index: 2; display: flex; gap: .5rem; }
.hero-controls button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(14,42,34,.5); color: white; cursor: pointer; font-size: 1.2rem; }
@keyframes fade { from { opacity: .3; transform: scale(1.005); } to { opacity: 1; transform: none; } }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-soft { background: var(--soft); }
.eyebrow { margin: 0 0 .75rem; color: var(--coral); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 800; }
h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); margin: 0; }
h2 { font-size: clamp(2.15rem, 4vw, 3.55rem); margin: 0 0 1rem; }
h3 { font-size: 1.55rem; margin: 0 0 .5rem; }
.lede { max-width: 820px; margin: 0; color: #405049; font-size: clamp(1rem, 1.4vw, 1.16rem); }
.section-head { display: grid; grid-template-columns: minmax(0, .7fr) minmax(280px, 1fr); align-items: end; gap: 3rem; margin-bottom: 2.5rem; }
.section-head .lede { justify-self: end; }
.intro-grid { display: grid; grid-template-columns: 160px 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.intro-icon { width: 130px; aspect-ratio: 1; object-fit: contain; filter: sepia(.2) saturate(.7); }
.copy { max-width: 900px; color: #405049; font-size: 1.02rem; }
.copy p:first-child { margin-top: 0; }
.copy p:last-child { margin-bottom: 0; }

.ventures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.venture { position: relative; min-height: 330px; padding: 1.5rem; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.78); box-shadow: 0 6px 24px rgba(20,45,37,.05); text-decoration: none; transition: transform .3s, box-shadow .3s; }
.venture:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.venture img { width: 62px; height: 62px; object-fit: contain; margin-bottom: 2.5rem; }
.venture p { margin: .4rem 0 1.5rem; color: var(--muted); font-size: .9rem; }
.text-link { margin-top: auto; color: var(--green); font-size: .77rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.feature-hero { position: relative; min-height: clamp(400px, 55vw, 680px); display: flex; align-items: flex-end; overflow: hidden; background: #193d34; color: white; }
.feature-media { position: absolute; inset: 0; z-index: 1; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-hero::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(8,28,23,.78), rgba(8,28,23,.08) 70%), linear-gradient(0deg, rgba(8,28,23,.6), transparent 50%); }
.feature-copy { position: relative; z-index: 3; padding-bottom: clamp(3rem, 8vw, 7rem); max-width: 760px; }
.feature-copy p { max-width: 640px; }

.gallery-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 40vw); gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .75rem max(1rem, calc((100vw - 1180px)/2)) 1.25rem; scrollbar-color: var(--green) transparent; }
.gallery-strip img { width: 100%; height: 430px; object-fit: cover; border-radius: var(--radius); scroll-snap-align: start; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.gallery-button { padding: 0; border: 0; border-radius: var(--radius); background: white; overflow: hidden; cursor: zoom-in; box-shadow: 0 10px 35px rgba(20,45,37,.08); }
.gallery-button img { width: 100%; aspect-ratio: 1.28; object-fit: contain; transition: transform .35s; }
.gallery-button:hover img { transform: scale(1.025); }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.project-card { position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden; background: #d8ded8; color: white; text-decoration: none; box-shadow: var(--shadow); }
.project-card { border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; }
.project-card > .cover { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,25,20,.72), transparent 60%); }
.project-card:hover > .cover { transform: scale(1.06); }
.project-card .project-logo { position: absolute; z-index: 1; left: 1.5rem; bottom: 1.5rem; max-width: 45%; max-height: 90px; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 3px 8px rgba(0,0,0,.3)); }
.project-card .project-label { position: absolute; z-index: 2; right: 1.5rem; top: 1.5rem; padding: .45rem .7rem; border-radius: 99px; background: rgba(255,255,255,.86); color: var(--ink); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.detail-card { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius); background: white; border: 1px solid var(--line); }
.detail-card ul { margin: 1.25rem 0 0; padding-left: 1.25rem; color: #405049; }
.detail-card li + li { margin-top: .55rem; }
.button { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; padding: .8rem 1.15rem; border: 0; border-radius: 99px; background: var(--green); color: white; font: inherit; font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.button:hover { background: var(--green-dark); }

.credit { text-align: center; background: white; border-block: 1px solid var(--line); }
.credit img { width: 150px; margin: 1.25rem auto 0; }
.site-footer { padding: 4rem 0 1rem; color: #d9e5e0; background: #102d26; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 3rem; }
.footer-logo { width: 115px; filter: brightness(0) invert(1); opacity: .9; }
.site-footer h2 { color: white; font-size: 1rem; font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .5rem; }
.site-footer a { color: #d9e5e0; text-decoration: none; }
.site-footer a:hover { color: white; }
.site-footer address { font-style: normal; }
.legal { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); color: #9eb4ac; font-size: .76rem; display: flex; justify-content: space-between; gap: 1rem; }

.lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 1rem; background: #0c1714; color: white; box-shadow: 0 30px 90px #0008; }
.lightbox::backdrop { background: rgba(4,12,10,.85); backdrop-filter: blur(8px); }
.lightbox img { max-height: 82vh; width: 100%; object-fit: contain; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem; }
.lightbox-close { border: 0; border-radius: 50%; width: 38px; height: 38px; color: white; background: rgba(255,255,255,.12); cursor: pointer; }
.htmx-request main { opacity: .55; transition: opacity .2s; }

@media (max-width: 900px) {
  .topline { display: none; }
  .nav-wrap { min-height: 78px; }
  .brand img { width: 70px; height: 62px; }
  .menu-button { display: grid; }
  .site-nav { display: none; position: absolute; inset: 78px 1rem auto; padding: 1rem; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .85rem 1rem; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .section-head .lede { justify-self: start; }
  .ventures { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 100px 1fr; }
  .intro-icon { width: 90px; }
}
@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero-overlay { display: none; }
  .hero-controls { bottom: 1rem; right: 1rem; }
  .ventures, .project-grid, .details-grid, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .venture { min-height: 280px; }
  .intro-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-auto-columns: 82vw; }
  .gallery-strip img { height: 300px; }
  .project-card { min-height: 260px; }
  .legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .banner-placeholder::after { display: none; }
}
