/* Base */
:root {
  --ep-bg: #F5F5F2;
  --ep-surface: #FFFFFF;
  --ep-text: #1C1C1A;
  --ep-muted: #55554F;
  --ep-accent: #3D6B1F;
  --ep-accent-text: #F5F5F2;
  --ep-plate-bg: #1C1C1A;
  --ep-plate-text: #F5F5F2;
  --ep-line: #DDD9CE;
  --ep-font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ep-radius: 8px;
  --ep-btn-radius: 999px;
  --ep-pad: clamp(16px, 4vw, 40px);
  --ep-gap: clamp(64px, 9vw, 128px);
  --ep-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }

html {
  background-color: var(--ep-bg);
  background-image: radial-gradient(rgb(61 107 31 / .28) 2.5px, transparent 2.5px);
  background-size: 34px 34px;
  background-position: 0 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ep-font);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--ep-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ep-text);
}

h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 0.6vw + 1rem, 1.5rem); }

p { max-width: 68ch; }

a { color: var(--ep-accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; display: block; object-fit: cover; }

ul, ol { padding-left: 1.25rem; }

.ep-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--ep-pad);
}

.ep-text { max-width: 760px; }
.ep-text p + p { margin-top: 1em; }

/* Skip link */
.ep-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 20px;
  background: var(--ep-surface);
  color: var(--ep-accent);
  border-radius: var(--ep-radius);
  z-index: 100;
}
.ep-skip:focus { left: 16px; top: 16px; }

/* Header */
.ep-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ep-surface);
}
.ep-top__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 72px;
}
.ep-top__brand {
  margin-left: auto;
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--ep-text);
  text-decoration: none;
  white-space: nowrap;
}
.ep-top__rule {
  height: 4px;
  width: 100%;
  background: var(--ep-accent);
}

/* Nav */
.ep-nav__list {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.ep-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  font-size: 1rem;
  color: var(--ep-text);
  text-decoration: none;
  overflow: hidden;
}
.ep-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: var(--ep-accent);
  transform: translateX(-101%);
  transition: transform .28s ease;
  z-index: -1;
}
.ep-nav__link:hover,
.ep-nav__link:focus-visible { color: var(--ep-accent-text); }
.ep-nav__link:hover::before,
.ep-nav__link:focus-visible::before { transform: translateX(0); }
.ep-nav__link[aria-current="page"] { color: var(--ep-accent); }
.ep-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--ep-accent);
}

.ep-nav__burger {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--ep-line);
  border-radius: var(--ep-btn-radius);
  background: var(--ep-surface);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ep-text);
  cursor: pointer;
}
.ep-nav__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ep-accent);
  display: block;
}
.ep-nav__txt { font-weight: 600; }

/* Hero */
#hero {
  padding: clamp(48px, 7vw, 96px) 0 0;
  text-align: center;
  background: rgb(61 107 31 / .12);
}
.ep-hero__kicker {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--ep-muted);
}
.ep-hero__title {
  margin: 0 auto 20px;
  max-width: 16ch;
  text-wrap: balance;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ep-hero__line { display: block; }
.ep-js .ep-hero__line { animation: ep-lift .6s ease both; }
.ep-js .ep-hero__line:nth-child(2) { animation-delay: .18s; }
@keyframes ep-lift {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}
.ep-hero__lead {
  margin: 20px auto 28px;
  max-width: 48ch;
  line-height: 1.5;
  font-size: 1rem;
  color: var(--ep-muted);
}
.ep-hero__photo {
  margin: 40px auto 0;
  max-width: 100%;
}
.ep-hero__photo img {
  width: min(100%, 1000px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--ep-radius);
}

/* Sections */
section[id] { padding-block: clamp(48px, 6vw, 64px); }
#hero { padding-bottom: var(--ep-gap); }
.ep-block__intro {
  margin: 16px 0 32px;
  max-width: 62ch;
  color: var(--ep-muted);
}

/* Two columns layout */
.ep-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.ep-duo__side h2 { margin-top: 0; }
.ep-duo__note { color: var(--ep-muted); }
.ep-duo__photo {
  margin: 28px 0;
  max-width: 100%;
}
.ep-duo__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--ep-radius);
}
.ep-mark {
  display: block;
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.8rem);
  font-weight: 750;
  line-height: 1.1;
  color: var(--ep-accent);
  max-width: 20ch;
  margin-top: 12px;
}

/* Steps */
.ep-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ep-step;
}
.ep-steps__item {
  display: flex;
  align-items: start;
  gap: 20px;
  padding: 24px 8px;
  border-top: 1px solid rgb(28 28 26 / .12);
}
.ep-steps__item:first-child { border-top: none; }
.ep-steps__num {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem);
  font-weight: 750;
  color: var(--ep-accent);
  min-width: 3.2rem;
}
.ep-steps__desc { margin: 0; }

/* Gallery */
.ep-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.ep-gallery__shot {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.ep-gallery__shot img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--ep-radius);
  transition: transform .35s ease;
}
.ep-gallery__shot:hover img { transform: scale(1.03); }

/* Cards */
.ep-tile {
  background: var(--ep-surface);
  border-radius: var(--ep-radius);
  box-shadow: var(--ep-shadow);
  padding: 28px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ep-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgb(0 0 0 / .07), 0 18px 44px rgb(0 0 0 / .12);
}
.ep-tile h3 { margin-top: 0; }
.ep-tile p { margin-bottom: 0; color: var(--ep-muted); }
.ep-tile a { color: var(--ep-accent); }

.ep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* FAQ */
.ep-faq__item {
  background: var(--ep-surface);
  border-radius: var(--ep-radius);
  box-shadow: var(--ep-shadow);
  padding: 4px 24px;
  margin-bottom: 16px;
}
.ep-faq__item summary {
  cursor: pointer;
  font-weight: 650;
  padding: 18px 0;
  list-style-position: outside;
}
.ep-faq__item[open] summary { color: var(--ep-accent); }
.ep-faq__item p { color: var(--ep-muted); margin: 0 0 20px; }

/* Accent plate / form */
.ep-plate {
  background: var(--ep-plate-bg);
  color: var(--ep-plate-text);
  border-radius: calc(var(--ep-radius) + 4px);
  padding: clamp(28px, 4vw, 48px);
}
.ep-plate__head h2 { color: var(--ep-plate-text); margin-top: 0; }
.ep-plate__head p { color: #CFCFC8; }
.ep-plate a { color: #A8D48A; }

.ep-form { max-width: 640px; }
.ep-form__row { margin-bottom: 20px; }
.ep-form__label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ep-plate-text);
}
.ep-form__input {
  width: 100%;
  font: inherit;
  color: var(--ep-text);
  background: var(--ep-surface);
  border: 2px solid transparent;
  border-radius: var(--ep-radius);
  padding: 13px 16px;
}
.ep-form__input:focus {
  outline: 2px solid #A8D48A;
  outline-offset: 2px;
}
.ep-form__area { resize: vertical; min-height: 120px; }
.ep-form__check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 24px 0;
  font-size: 0.95rem;
  color: #CFCFC8;
}
.ep-form__check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: #A8D48A;
  flex: none;
}
.ep-form__note { font-size: 0.95rem; color: #CFCFC8; }
.ep-form__err {
  color: #F3B9A6;
  font-size: 0.95rem;
  margin-top: 6px;
}
.ep-form__input[aria-invalid="true"] { border-color: #F3B9A6; }
.ep-form.is-sending .ep-form__send { opacity: .6; pointer-events: none; }

/* Buttons */
.ep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border: 2px solid var(--ep-accent);
  border-radius: var(--ep-btn-radius);
  background: var(--ep-accent);
  color: var(--ep-accent-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: filter .25s ease, transform .25s ease, background-color .25s ease, color .25s ease;
  z-index: 0;
}
.ep-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / .18);
  transform: translateY(101%);
  transition: transform .28s ease;
  z-index: -1;
}
.ep-btn:hover { filter: brightness(.94); transform: translateY(-1px); }
.ep-btn:hover::before,
.ep-btn:focus-visible::before { transform: translateY(0); }
.ep-btn:focus-visible {
  outline: 3px solid var(--ep-accent);
  outline-offset: 3px;
}
.ep-btn:active { transform: translateY(0); filter: none; }
.ep-btn--ghost {
  background: transparent;
  color: var(--ep-accent);
}

/* Reveal */
.ep-js .ep-rise { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.ep-js .ep-rise--in { opacity: 1; transform: none; }

/* Inner page head */
.ep-page-head {
  padding: clamp(40px, 6vw, 72px) 0 8px;
}
.ep-page-head h1 { margin: 0 0 16px; }
.ep-page-head p { color: var(--ep-muted); margin: 0; }

/* Prose (policies) */
.ep-text h2 { margin: 40px 0 12px; scroll-margin-top: 100px; }
.ep-text h3 { margin: 28px 0 8px; }
.ep-text ul, .ep-text ol { color: var(--ep-muted); }
.ep-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}
.ep-text th, .ep-text td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ep-line);
}
.ep-text th { color: var(--ep-text); font-weight: 650; }

/* TOC */
.ep-toc {
  background: var(--ep-surface);
  border-radius: var(--ep-radius);
  box-shadow: var(--ep-shadow);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.ep-toc ol { margin: 0; padding-left: 1.25rem; }
.ep-toc a { text-decoration: none; }
.ep-toc a:hover { text-decoration: underline; }

/* Contacts / thanks / 404 */
.ep-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.ep-contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--ep-line);
}
.ep-contact-list span {
  display: inline-block;
  min-width: 8rem;
  font-weight: 650;
}
.ep-status {
  padding: clamp(48px, 8vw, 96px) 0 var(--ep-gap);
}
.ep-status h1 { margin-bottom: 16px; }
.ep-status p { color: var(--ep-muted); }
.ep-status ul { margin: 24px 0; }

/* Footer */
.ep-foot {
  background: var(--ep-surface);
  border-top: 4px solid var(--ep-accent);
  margin-top: var(--ep-gap);
  padding: clamp(40px, 6vw, 64px) 0 24px;
}
.ep-foot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.ep-foot__lead {
  font-weight: 750;
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: var(--ep-text);
}
.ep-foot__note { color: var(--ep-muted); margin: 0 0 24px; }
.ep-foot__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 24px;
}
.ep-foot__nav li { padding: 4px 0; }
.ep-foot__nav a { text-decoration: none; font-size: 0.95rem; }
.ep-foot__nav a:hover { text-decoration: underline; }
.ep-foot__col address {
  font-style: normal;
  color: var(--ep-muted);
}
.ep-foot__col address p { margin: 0 0 10px; }
.ep-foot__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ep-foot__col ul li { padding: 4px 0; color: var(--ep-muted); }
.ep-foot__col ul li span { font-weight: 650; color: var(--ep-text); margin-right: 4px; }
.ep-foot__col a { color: var(--ep-accent); }
.ep-foot__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--ep-line);
}
.ep-foot__copy {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ep-muted);
}

/* Breakpoints */
@media (max-width: 479px) {
  .ep-foot__nav ul { columns: 1; }
  .ep-steps__item { gap: 12px; }
  .ep-steps__num { min-width: 2.6rem; }
}

@media (max-width: 767px) {
  .ep-top__inner { min-height: 64px; }
  .ep-nav__burger { display: inline-flex; }
  .ep-nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ep-surface);
    border-bottom: 1px solid var(--ep-line);
    padding: 8px var(--ep-pad) 20px;
  }
  .ep-nav--open .ep-nav__list { display: flex; }
  .ep-nav__link { display: block; padding: 12px 4px; }
  .ep-nav__link::before { display: none; }
  .ep-nav__link:hover { color: var(--ep-accent); }
  .ep-duo__side { position: static; }
  .ep-hero__photo { margin-inline: calc(var(--ep-pad) * -1); }
  .ep-hero__photo img { width: 100%; aspect-ratio: 16 / 10; }
  #hero .ep-btn { width: min(100%, 320px); margin-inline: auto; }
  .ep-steps__item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
}

@media (min-width: 640px) {
  .ep-gallery { grid-template-columns: 2fr 1fr; }
  .ep-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .ep-duo {
    grid-template-columns: minmax(280px, 5fr) 7fr;
    gap: 64px;
    align-items: start;
  }
  .ep-duo__side {
    position: sticky;
    top: 100px;
    align-self: start;
  }
  .ep-gallery { grid-template-columns: repeat(4, 1fr); }
  .ep-foot__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (min-width: 1024px) {
  .ep-grid { grid-template-columns: repeat(3, 1fr); }
  .ep-hero__title { margin-inline: auto; }
}

@media (min-width: 1280px) {
  .ep-hero__photo { max-width: 1100px; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ep-js .ep-rise { opacity: 1; transform: none; }
  .ep-js .ep-hero__line { animation: none; }
}

/* Section tone */
.ep-duo__body { max-width: 65ch; }
main section { background-color: rgb(245 245 242 / .65); }
