:root {
  --green: #27473788;
  --light-green: #486b56b7;
  --cream: rgba(24, 48, 34, 0.94);
  --paper: rgba(246, 247, 240, 0.92);
  --text: rgba(24, 48, 34, 0.94);
  --muted: rgba(24, 48, 34, 0.72);
  --line: rgba(24, 48, 34, 0.28);
  --white-soft: rgba(24, 48, 34, 0.84);
  --window-white: rgba(255, 255, 255, 0.3);
  --font: Georgia, serif;
  --page-background: url('background.avif');
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-background) center / cover fixed no-repeat;
  color: var(--cream);
  font-family: var(--font);
}
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
.section-pad { padding-left: 7vw; padding-right: 7vw; }
.site-header {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  max-width: calc(100vw - 24px);
  padding: 0;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 7px;
  border: 1px solid rgba(241, 242, 234, 0.18);
  border-radius: 12px;
  background: var(--window-white);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(13, 24, 18, 0.26);
}
.wordmark, nav, .eyebrow, .section-heading > span,
.project-meta, .project-foot, .text-link, .site-footer {
  font-family: var(--font);
  text-transform: uppercase;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.wordmark span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cream);
  color: #274737;
  font-size: 10px;
}
.seekbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 14px;
  height: 42px;
  flex-shrink: 0;
}
.seekbar-track {
  position: relative;
  display: block;
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: rgba(39, 71, 55, 0.2);
  overflow: hidden;
}
.seekbar-fill {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 54%;
  border-radius: inherit;
  background: linear-gradient(180deg, #4f8b63, #23613d);
}
.floating-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  flex: 1 1 auto;
  width: 100%;
  padding: 6px;
  border: 1px solid rgba(241, 242, 234, 0.18);
  border-radius: 12px;
  background: var(--window-white);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(13, 24, 18, 0.22);
}
.nav-row {
  display: contents;
}
.nav-row-top,
.nav-row-bottom {
  display: contents;
}
.nav-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  width: 100%;
  min-height: 52px;
  padding: 8px 6px;
  border: 1px solid rgba(241, 242, 234, 0.16);
  border-radius: 9px;
  background: var(--window-white);
  color: var(--cream);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.nav-btn:hover,
.nav-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(241, 242, 234, 0.38);
  background: var(--window-white);
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(241, 242, 234, 0.12);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.nav-label {
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.08em;
}
.nav-popup {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  min-width: max-content;
  max-width: 160px;
  padding: 8px 10px;
  border: 1px solid rgba(241, 242, 234, 0.18);
  border-radius: 10px;
  background: var(--window-white);
  color: var(--cream);
  font-size: 9px;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.nav-btn:hover .nav-popup,
.nav-btn:focus-visible .nav-popup {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.nav-btn[aria-current="page"] {
  border-color: rgba(241, 242, 234, 0.35);
  background: rgba(241, 242, 234, 0.08);
}
nav { display: flex; gap: 28px; font-size: 11px; }
nav a { opacity: 1; }
.view-section { display: none; }
.view-section:not(.is-active) { display: none !important; }
.view-section.is-active {
  position: fixed;
  top: 92px;
  right: 5vw;
  bottom: 78px;
  left: 5vw;
  z-index: 2;
  display: block;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-bottom: 110px;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  animation: section-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}
.view-section.is-active.hero {
  display: flex;
  align-items: center;
  min-height: 0;
  z-index: 1;
}
#home.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
}

.view-section.is-active.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
}
@keyframes section-rise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.site-header a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8vw;
  min-height: 760px;
  padding-top: 130px;
  padding-bottom: 80px;
}
.hero-copy { align-self: end; max-width: 490px; padding-bottom: 35px; }
.eyebrow { margin: 0 0 24px; color: var(--white-soft); font-size: 11px; line-height: 1.5; letter-spacing: 0.08em; }
.eyebrow span { display: block; margin-top: 7px; }
h1, h2 { margin: 0; font-weight: normal; line-height: 0.95; }
h1 { font-size: clamp(50px, 7vw, 96px); }
h1 em, h2 em { font-family: var(--font); }
.hero-intro { max-width: 340px; margin: 30px 0 35px; font-size: 16px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; }
.text-link .line { width: 35px; height: 1px; background: currentColor; }
.hero-art {
  align-self: center;
  min-height: 420px;
  height: min(58vw, 590px);
  position: relative;
  background: var(--window-white);
  border: 1px solid rgba(241, 242, 234, 0.4);
}
.sun, .ridge, .fog { display: none; }
.hero-caption { position: absolute; right: 20px; bottom: 20px; left: 20px; display: flex; justify-content: space-between; color: var(--white-soft); font: 10px var(--font); }
.work { padding-top: 80px; padding-bottom: 110px; background: var(--window-white); color: var(--cream); }
.work.view-section.is-active { overflow: hidden; }
.section-heading { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; }
.section-heading .eyebrow { color: var(--muted); margin-bottom: 0; }
.section-heading > span { color: var(--muted); font-size: 11px; }
.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 55px;
}
.project { border-top: 1px solid var(--line); padding: 18px 0 42px; }
.project-meta, .project-foot { display: flex; justify-content: space-between; font-size: 10px; }
.project-meta { color: var(--muted); }
.project-visual {
  position: relative;
  display: flex;
  aspect-ratio: 4 / 3;
  min-height: 0;
  margin: 24px 0 22px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  background: var(--window-white);
  border: 1px solid rgba(29, 43, 34, 0.28);
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(29, 43, 34, 0.14), inset 0 0 0 6px rgba(246, 247, 240, 0.38);
}
.image-preview { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.project-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.project-visual .image-preview:hover img { transform: scale(1.03); }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.project-gallery img { min-width: 0; }
.project-info { min-height: 126px; padding: 0 2px 22px; }
.project-info h3 { margin: 0 0 10px; color: var(--cream); font: normal 22px/1 var(--font); }
.project-info p { margin: 0 0 12px; color: rgba(241, 242, 234, 0.8); font-size: 14px; line-height: 1.45; }
.project-info .project-tech { margin-bottom: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.project-info strong { color: var(--cream); font-weight: normal; }
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(10, 20, 14, 0.86);
  cursor: zoom-out;
}
.image-lightbox[hidden] { display: none; }
.image-lightbox img { max-width: min(92vw, 1100px); max-height: 88vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); cursor: default; }
.lightbox-close { position: absolute; top: 18px; right: 24px; border: 0; background: transparent; color: var(--cream); font: 34px/1 var(--font); cursor: pointer; }
.project-visual::after { display: none; }
.project-visual span, .project-visual small { position: relative; z-index: 1; color: white; }
.project-visual span { font: clamp(42px, 8vw, 108px) var(--font); }
.project-visual small { margin-top: 5px; font: 10px var(--font); letter-spacing: 0.12em; }
.project-foot h2 { font-size: 24px; }
.project-foot a { text-decoration: underline; text-underline-offset: 4px; }
.about {
  padding-top: 32px;
  padding-bottom: 38px;
  background: var(--window-white);
  border: 1px solid rgba(241, 242, 234, 0.24);
  box-shadow: 0 18px 46px rgba(9, 25, 15, 0.3), inset 0 1px 0 rgba(241, 242, 234, 0.08);
  backdrop-filter: blur(12px);
}
.about.view-section.is-active { top: 150px; right: 10vw; bottom: auto; left: 10vw; max-height: calc(100vh - 180px); overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin-top: 28px;
  align-items: start;
}
.about h2 { font-size: clamp(46px, 6vw, 85px); }
.about-copy {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 8px 0 8px 20px;
  border-left: 2px solid rgba(183, 216, 179, 0.62);
}
.about-copy + .about-copy { border-left-color: rgba(241, 242, 234, 0.42); }
.about-copy p { margin: 0 0 16px; color: var(--white-soft); font-size: 16px; line-height: 1.65; max-width: none; }
.about-copy h5 { margin: 0 0 10px; color: var(--cream); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.contact {
  padding-top: 40px;
  padding-bottom: 74px;
  background: var(--window-white);
  color: var(--cream);
}
.contact.view-section.is-active { top: 150px; right: 18vw; bottom: auto; left: 18vw; max-height: min(420px, calc(100vh - 180px)); overflow: hidden; }
.contact-heading { border-top: 1px solid var(--line); padding-top: 16px; }
.contact-heading .eyebrow { margin-bottom: 12px; color: var(--muted); }
.contact-heading h2 { font-size: clamp(36px, 5vw, 64px); }
.contact-grid {
  display: block;
  margin-top: 30px;
}
.contact-copy p { max-width: 360px; color: var(--white-soft); font-size: 15px; line-height: 1.5; }
.contact-details { display: grid; gap: 10px; margin-top: 24px; }
.contact-details div { display: grid; gap: 3px; }
.contact-details span { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-details strong { color: var(--cream); font-size: 14px; font-weight: normal; }
.contact-link { display: inline-block; margin-top: 18px; color: var(--cream); text-decoration: underline; text-underline-offset: 5px; }
.site-footer { display: flex; justify-content: space-between; padding-top: 18px; padding-bottom: 24px; background: var(--window-white); color: var(--cream); font-size: 10px; }
.site-footer a { text-decoration: underline; }
.reveal, .reveal.visible { opacity: 1; transform: none; }
@media (max-width: 720px) {
  .section-pad { padding-left: 22px; padding-right: 22px; }
  .view-section.is-active { top: 104px; right: 12px; bottom: 72px; left: 12px; max-height: calc(100vh - 176px); }
  .hero { display: flex; flex-direction: column; min-height: auto; padding-top: 110px; }
  .hero-copy { padding-bottom: 0; }
  .hero-art { height: 92vw; min-height: 330px; }
  .work { padding-top: 64px; padding-bottom: 78px; }
  .about.view-section.is-active { top: 118px; right: 12px; bottom: auto; left: 12px; max-height: calc(100vh - 150px); }
  .about { padding-top: 30px; padding-bottom: 38px; }
  .contact.view-section.is-active { top: 118px; right: 12px; bottom: auto; left: 12px; max-height: calc(100vh - 150px); }
  .contact { padding-top: 30px; padding-bottom: 62px; }
  .contact-grid { margin-top: 28px; }
  .contact-copy p { font-size: 16px; }
  .project-list, .about-grid { margin-top: 48px; }
  .project-list { grid-template-columns: 1fr; }
  .project-visual { min-height: 0; }
  .about-grid { display: block; }
  .about-copy { margin-top: 48px; }
  .site-footer { flex-wrap: wrap; gap: 14px; }
  .site-footer span:nth-child(2) { width: 100%; order: 3; }
}
