/* ==========================================================================
   Hermes Building — static rebuild
   ========================================================================== */

:root {
  --green: #7ac143;
  --green-dark: #6aad38;
  --ink: #333;
  --body: #777;
  --muted: #999;
  --rule: #e6e6e6;
  --container: 1170px;
  --header-h: 200px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.625;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--green); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  color: var(--green);
  margin: 0 0 .6em;
  line-height: 1.15;
}

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 23px; }
h4 { font-size: 19px; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 860px;
  margin-left: max(0px, calc((100% - var(--container)) / 2));
  margin-right: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------- Header */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: block; width: 175px; flex: none; }
.logo img { width: 100%; }
.logo .logo-white { display: none; }

.menu-toggle {
  appearance: none;
  border: 0;
  background: none;
  padding: 12px;
  margin-right: -12px;
  cursor: pointer;
  line-height: 0;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
  transition: background .2s var(--ease), transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-toggle span + span { margin-top: 5px; }

/* Dark hero pages: white logo + white bars */
.theme-dark .logo .logo-green { display: none; }
.theme-dark .logo .logo-white { display: block; }
.theme-dark .menu-toggle span { background: #fff; }

/* ----------------------------------------------------------- Overlay nav */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 20, 20, .97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}

.nav-open .nav-overlay { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }

.nav-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.nav-overlay li { margin: 0; }

.nav-overlay a {
  display: block;
  padding: 11px 20px;
  color: #fff;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: .01em;
  transform: translateY(14px);
  opacity: 0;
  transition: color .2s var(--ease), transform .45s var(--ease), opacity .45s var(--ease);
}

.nav-open .nav-overlay a { transform: none; opacity: 1; }
.nav-overlay a:hover,
.nav-overlay a[aria-current="page"] { color: var(--green); }

.nav-close {
  position: absolute;
  top: 34px; right: 34px;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  padding: 0;
}
.nav-close::before, .nav-close::after {
  content: ""; position: absolute; left: 9px; top: 21px;
  width: 26px; height: 3px; border-radius: 2px; background: #fff;
}
.nav-close::before { transform: rotate(45deg); }
.nav-close::after { transform: rotate(-45deg); }
.nav-close:hover::before, .nav-close:hover::after { background: var(--green); }

/* ------------------------------------------------------------ Page intro */

.page-body { padding-top: var(--header-h); }

.page-intro { padding-bottom: 10px; }
.page-intro h1 { margin-bottom: .5em; }
.page-intro .lede { font-size: 17px; max-width: 780px; }

section { padding: 45px 0; }
section.tight { padding: 25px 0; }

/* ----------------------------------------------------------- Text + media */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

.split.wide-left { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }

.media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.media-pair img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.figure img {
  width: 100%;
  border-radius: 2px;
}

.stack > * + * { margin-top: 28px; }

/* --------------------------------------------------------------- Feature */

.feature h3 { margin-bottom: .45em; }
.stack .feature + .feature { margin-top: 34px; }

.eyebrow {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin: 0 0 14px;
}

/* ------------------------------------------------------------ Guarantee */

.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
  position: relative;
  padding: 0 0 0 34px;
  margin-bottom: 18px;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 11px; height: 6px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------- Steps */

.step { border-top: 1px solid var(--rule); padding-top: 28px; margin-top: 28px; }
.step:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.step-no {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 8px;
}
.step h3 { color: var(--ink); font-size: 21px; }

/* ------------------------------------------------------------ Quotes */

.quote {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 24px;
  margin: 0 0 30px;
  font-size: 16px;
  font-style: italic;
  color: #666;
}
.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------- FAQ */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  position: relative;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green); }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  background: var(--green);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.faq summary::before { width: 14px; height: 2px; margin-top: -1px; }
.faq summary::after  { width: 2px; height: 14px; margin-top: -7px; right: 12px; }
.faq details[open] summary::after { transform: rotate(90deg); opacity: 0; }
.faq .answer { padding: 0 40px 24px 0; }
.faq .answer ul { margin: 0 0 1em; padding-left: 20px; }

/* ---------------------------------------------------------- Work grid */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.work-card { display: block; position: relative; overflow: hidden; background: #111; }
.work-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .6s var(--ease), opacity .35s var(--ease);
}
.work-card:hover img { transform: scale(1.04); opacity: .82; }

.work-card .label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 60px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,0) 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .01em;
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
}

/* --------------------------------------------------------- Slideshow */

.slideshow {
  position: relative;
  height: 100vh;
  min-height: 560px;
  background: #111;
  overflow: hidden;
}

.slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.slideshow .slide.is-active { opacity: 1; }
.slideshow::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.42) 0%, rgba(0,0,0,.15) 38%, rgba(0,0,0,.5) 100%);
  pointer-events: none;
}

.slideshow .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 0 0 96px;
}
.slideshow .caption p {
  max-width: 620px;
  color: #fff;
  font-size: 21px;
  font-weight: 300;
  line-height: 1.5;
  text-shadow: 0 1px 18px rgba(0,0,0,.45);
}

.slide-nav-wrap {
  position: absolute;
  z-index: 4;
  left: 0; right: 0; bottom: 74px;
}

.slide-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.slide-nav button {
  width: 34px; height: 34px;
  border: 0; padding: 0; cursor: pointer;
  background: none;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-family: inherit;
  transition: color .2s var(--ease);
}
.slide-nav button:hover { color: #fff; }
.slide-nav button[aria-current="true"] { color: var(--green); font-weight: 700; }

.project-heading {
  position: absolute;
  z-index: 4;
  left: 0; right: 0;
  bottom: 96px;
}
.project-heading h1 {
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  margin: 0 0 6px;
  text-shadow: 0 1px 18px rgba(0,0,0,.45);
}
.project-heading p { color: rgba(255,255,255,.85); margin: 0; }
.project-heading .back { color: #fff; font-size: 14px; }
.project-heading .back:hover { color: var(--green); }

/* --------------------------------------------------------------- CTA */

.cta {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 54px 0;
  margin-top: 20px;
}
.cta h2 {
  color: #fff;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: .8em;
}
.cta p { color: rgba(255,255,255,.92); font-size: 18px; margin-bottom: 26px; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  border: 2px solid #fff;
  color: #fff;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: #fff; color: var(--green); }

.btn-green {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

/* ------------------------------------------------------------- Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: #fafafa;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--green);
  background: #fff;
}
.field textarea { min-height: 160px; resize: vertical; }

.contact-details p { margin-bottom: .7em; }
.contact-details .big { font-size: 19px; color: var(--ink); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* -------------------------------------------------------------- Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 26px 0;
  font-size: 13px;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--green); }

.site-footer.on-dark {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  border: 0;
  color: rgba(255,255,255,.75);
  background: none;
}
.site-footer.on-dark a { color: rgba(255,255,255,.75); }
.site-footer.on-dark a:hover { color: var(--green); }

/* ---------------------------------------------------------- Responsive */

@media (max-width: 900px) {
  :root { --header-h: 130px; }
  .split, .split.wide-left, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .logo { width: 150px; }
  h1 { font-size: 27px; }
  h2 { font-size: 23px; }
  h3 { font-size: 20px; }
  .project-heading h1 { font-size: 30px; }
  .slideshow .caption p { font-size: 18px; }
}

@media (max-width: 560px) {
  .media-pair { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .nav-overlay a { font-size: 21px; padding: 9px 20px; }
  .slideshow { min-height: 480px; }
  .slideshow .caption { padding-bottom: 120px; }
  .project-heading { bottom: 120px; }
  .site-footer .container { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .nav-overlay, .cta, .slide-nav { display: none !important; }
  body { color: #000; }
}
