:root {
  --aculae-ink: #17201c;
  --aculae-paper: #f7f3ea;
  --aculae-hayfield: #ead18d;
  --aculae-feature-strip-ink: #1d201c;
  --aculae-footer-ink: #1f2937;
  --aculae-footer-copy-ink: #374151;
  --aculae-ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --aculae-body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --aculae-topbar-height: 74px;
  --aculae-feature-strip-height: 226px;
  --aculae-footer-band-height: 88px;
  --aculae-footer-copy-height: 64px;
  --aculae-mobile-topbar-height: 56px;
}

html {
  background: var(--aculae-paper);
  overflow-y: auto;
  scroll-padding-top: var(--aculae-topbar-height);
}

html.is-home {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

html.is-home .haystack-hero,
html.is-home .feature-strip,
html.is-home .home-copy {
  scroll-snap-align: start;
}

html.is-home header {
  position: sticky;
  top: 0;
  z-index: 30;
}

body {
  color: var(--aculae-ink);
  background: transparent;
  font-family: var(--aculae-ui-font);
  font-weight: 400;
  margin: 0;
  overflow-x: hidden;
}

.content,
input,
button,
textarea,
select {
  font-family: var(--aculae-body-font);
}

.content p,
.haystack-hero__lede,
.feature-card__description,
.home-copy p,
.contact-page__header p,
.contact-form__note {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

header nav {
  min-height: var(--aculae-topbar-height);
  padding: 0.72rem clamp(1.25rem, 4vw, 2rem) !important;
  background: var(--aculae-paper);
}

header nav img {
  width: auto;
  height: 2.45rem !important;
}

.site-brand {
  color: #6f706a;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(2.05rem, 3vw, 2.65rem);
  font-weight: 600;
  letter-spacing: 0.018em;
  line-height: 0.9;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-brand:hover {
  color: #52544f;
}

.haystack-hero {
  isolation: isolate;
  position: relative;
  height: calc(100svh - var(--aculae-topbar-height) - var(--aculae-feature-strip-height));
  min-height: 430px;
  overflow: hidden;
  background: var(--aculae-hayfield);
  border-top: 1px solid rgba(23, 32, 28, 0.12);
  border-bottom: 0;
}

.haystack-hero__canvas,
.haystack-hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.haystack-hero__canvas {
  display: block;
  z-index: 0;
  touch-action: pan-y;
}

.haystack-hero__fallback {
  object-fit: cover;
}

.haystack-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(247, 243, 234, 0.94), rgba(247, 243, 234, 0.68) 32%, rgba(247, 243, 234, 0) 56%);
  pointer-events: none;
}

.haystack-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(64px, 12vw, 132px) clamp(24px, 7vw, 108px);
}

.haystack-hero__title {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.9rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.haystack-hero__lede {
  max-width: 560px;
  margin: 26px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.42;
  font-weight: 400;
}

.haystack-hero__cta {
  display: inline-flex;
  margin-top: 34px;
  padding: 0.86rem 1.15rem;
  color: var(--aculae-paper);
  background: var(--aculae-ink);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--aculae-ink);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.haystack-hero__cta:hover {
  color: var(--aculae-ink);
  background: transparent;
  transform: translateY(-2px);
}

.haystack-hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  color: rgba(23, 32, 28, 0.82);
  background: rgba(247, 243, 234, 0.52);
  border: 1px solid rgba(23, 32, 28, 0.14);
  border-radius: 999px;
  text-decoration: none;
  transform: translateX(-50%);
  backdrop-filter: blur(5px);
}

.haystack-hero__scroll-cue-mark {
  display: block;
  width: 0.48rem;
  height: 0.48rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.16rem) rotate(45deg);
}

.feature-strip {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  background: var(--aculae-feature-strip-ink);
  scroll-margin-top: var(--aculae-topbar-height);
}

.feature-strip__grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: var(--aculae-feature-strip-height);
}

@media (min-width: 900px) {
  .feature-strip__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-card-link {
  display: block;
  min-height: var(--aculae-feature-strip-height);
  color: inherit;
  text-decoration: none;
}

.feature-card {
  min-height: var(--aculae-feature-strip-height);
  color: #f7f3ea;
  background: transparent;
  border-right: 1px solid rgba(247, 243, 234, 0.14);
}

.feature-card-link:first-child .feature-card {
  border-left: 1px solid rgba(247, 243, 234, 0.14);
}

.feature-card-link:last-child .feature-card {
  border-right: 1px solid rgba(247, 243, 234, 0.14);
}

.feature-card__icon {
  display: block;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.8rem;
  color: #ead18d;
}

.feature-card__title {
  max-width: 24rem;
  margin-right: auto;
  margin-left: auto;
  color: #fff9e8;
  line-height: 1.18;
}

.feature-card__description {
  max-width: 23rem;
  margin: 0 auto;
  color: rgba(247, 243, 234, 0.78);
  line-height: 1.55;
}

.home-copy {
  background: var(--aculae-paper);
  padding: clamp(56px, 8vw, 96px) 0;
  scroll-margin-top: var(--aculae-topbar-height);
}

.home-copy__inner {
  width: min(60vw, 980px);
  margin: 0 auto;
}

.home-copy p {
  margin: 0;
  color: rgba(23, 32, 28, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.72;
}

.home-copy p + p {
  max-width: 620px;
  margin-top: 1.15rem;
}

.contact-page {
  background: var(--aculae-paper);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.contact-page__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(36px, 6vw, 92px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.contact-page__header {
  max-width: 560px;
}

.contact-page__eyebrow {
  margin: 0 0 1rem;
  color: #817650;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-page__header h1 {
  margin: 0;
  color: var(--aculae-ink);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 800;
  line-height: 0.96;
}

.contact-page__header p:not(.contact-page__eyebrow) {
  margin: 1.6rem 0 0;
  color: rgba(23, 32, 28, 0.76);
  font-size: 1.12rem;
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(22px, 3vw, 34px);
  color: var(--aculae-ink);
  background: #fffaf0;
  border: 1px solid rgba(23, 32, 28, 0.14);
  box-shadow: 0 24px 70px rgba(23, 32, 28, 0.08);
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form__field-trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form label {
  display: grid;
  gap: 0.42rem;
}

.contact-form span {
  color: rgba(23, 32, 28, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 32, 28, 0.22);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.84);
  color: var(--aculae-ink);
  font: inherit;
  line-height: 1.45;
}

.contact-form input {
  min-height: 3rem;
  padding: 0.72rem 0.82rem;
}

.contact-form textarea {
  min-height: 11rem;
  padding: 0.82rem;
  resize: vertical;
}

.contact-form__challenge {
  display: grid;
  grid-template-columns: auto minmax(7rem, 12rem);
  gap: 0.75rem;
  align-items: center;
  justify-content: start;
}

.contact-form__challenge strong {
  color: rgba(23, 32, 28, 0.82);
  font-size: 1.05rem;
  line-height: 1;
}

.contact-form__captcha small {
  min-height: 1.2em;
  color: #8a3128;
  font-size: 0.86rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #817650;
  outline-offset: 2px;
}

.contact-form button {
  justify-self: start;
  min-height: 3rem;
  margin-top: 0.2rem;
  padding: 0.78rem 1.1rem;
  color: var(--aculae-paper);
  background: var(--aculae-ink);
  border: 2px solid var(--aculae-ink);
  font-weight: 800;
  cursor: pointer;
}

.contact-form button:hover {
  color: var(--aculae-ink);
  background: transparent;
}

.contact-form__note {
  margin: 0;
  color: rgba(23, 32, 28, 0.62);
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 899px) {
  :root {
    --aculae-topbar-height: var(--aculae-mobile-topbar-height);
  }

  html {
    scroll-padding-top: var(--aculae-mobile-topbar-height);
  }

  header nav {
    min-height: var(--aculae-mobile-topbar-height);
    padding: 0.4rem 1rem !important;
  }

  header nav img {
    height: 2.2rem !important;
  }

  #hamburgerbtn {
    width: 2rem !important;
    height: 2rem !important;
    padding: 0 !important;
  }

  #hamburgerbtn span {
    width: 24px;
    margin-left: -12px;
  }

  #hamburgerbtn .top {
    transform: translateY(-7px);
  }

  #hamburgerbtn .bottom {
    transform: translateY(7px);
  }

  .haystack-hero {
    height: calc(100svh - var(--aculae-mobile-topbar-height));
    min-height: 0;
  }

  .haystack-hero__veil {
    background: linear-gradient(180deg, rgba(247, 243, 234, 0.96), rgba(247, 243, 234, 0.62) 48%, rgba(247, 243, 234, 0) 78%);
  }

  .haystack-hero__scroll-cue {
    display: inline-flex;
  }

  .feature-card {
    min-height: 0;
    height: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(247, 243, 234, 0.14);
  }

  .feature-card-link:first-child .feature-card {
    border-top: 1px solid rgba(247, 243, 234, 0.14);
    border-left: 0;
  }

  .feature-card-link:last-child .feature-card {
    border-right: 0;
    border-bottom: 1px solid rgba(247, 243, 234, 0.14);
  }

  .feature-card-link {
    min-height: 0;
  }

  .feature-strip__grid {
    grid-template-rows: repeat(3, minmax(220px, 1fr));
    min-height: calc(100svh - var(--aculae-mobile-topbar-height));
  }

  .feature-strip,
  .home-copy {
    min-height: calc(100svh - var(--aculae-mobile-topbar-height));
    scroll-margin-top: var(--aculae-mobile-topbar-height);
  }

  .home-copy {
    display: flex;
    align-items: center;
    padding: clamp(48px, 12vw, 72px) 24px;
  }

  .home-copy__inner {
    width: auto;
  }

  .contact-page {
    padding: 44px 20px 64px;
  }

  .contact-page__inner,
  .contact-form__row,
  .contact-form__challenge {
    grid-template-columns: 1fr;
  }

  .contact-page__header h1 {
    font-size: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .haystack-hero__cta {
    transition: none;
  }
}

.scroll-top {
  display: none !important;
}
