:root {
  --bg: #f8fbf8;
  --surface: #ffffff;
  --ink: #151a16;
  --muted: #4d5b51;
  --line: rgba(26, 42, 30, 0.14);
  --green: #518f39;
  --green-deep: #2f6d33;
  --gold: #e7ad30;
  --coral: #ef6f62;
  --blue: #3a91bf;
  --shadow: 0 18px 45px rgba(25, 47, 28, 0.13);
  --header-height: 76px;
  --content: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

main section[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 12px max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid transparent;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(248, 251, 248, 0.93);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(25, 47, 28, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 194px;
  min-width: 160px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(248, 251, 248, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(15px);
}

.site-nav a {
  border-radius: 6px;
  padding: 9px 12px;
  color: #223328;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(81, 143, 57, 0.13);
  color: var(--green-deep);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 82svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 28px) max(20px, calc((100vw - 1120px) / 2)) 34px;
  color: #fff;
}

.hero__image {
  position: absolute;
  inset: -3%;
  z-index: -3;
  width: 106%;
  height: 106%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  animation: hero-pan 22s ease-in-out infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17, 29, 20, 0.82), rgba(17, 29, 20, 0.5) 42%, rgba(17, 29, 20, 0.12) 76%),
    linear-gradient(0deg, rgba(12, 23, 15, 0.54), rgba(12, 23, 15, 0.02) 54%);
}

.hero__content {
  width: min(720px, 100%);
  padding-block: 16px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-deep);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffdc72;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  font-size: 4.35rem;
  font-weight: 850;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.38);
}

h2 {
  font-size: 3rem;
  font-weight: 820;
}

h3 {
  font-size: 1.22rem;
  font-weight: 800;
}

.hero__lead {
  width: min(640px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.23rem;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.38);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  appearance: none;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 13px 30px rgba(47, 109, 51, 0.24);
}

.button--primary:hover {
  background: var(--green-deep);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(14px);
}

.button--tertiary {
  border-color: var(--line);
  background: #fff;
  color: var(--green-deep);
}

.button--tertiary:hover {
  border-color: rgba(81, 143, 57, 0.34);
  background: rgba(81, 143, 57, 0.08);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 30px;
  height: 46px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
}

.scroll-cue span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
  animation: cue 1.6s ease-in-out infinite;
}

.intro-band,
.approach-section,
.solutions-section,
.moment-section,
.contact-section {
  width: var(--content);
  margin-inline: auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 48px;
  padding: 16px 0 70px;
}

.section-copy p,
.intro-grid p,
.solutions-copy > p,
.moment-section__copy p,
.contact-copy p,
.brief-output p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-copy > p:last-child {
  margin-top: 22px;
}

.intro-grid {
  display: grid;
  gap: 22px;
  align-content: end;
}

.intro-grid p {
  margin: 0;
  padding-left: 22px;
  border-left: 4px solid var(--gold);
}

.purpose-examples {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.purpose-examples article,
.solution-examples article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 20px;
}

.purpose-examples span,
.solution-examples span,
.practice-note span,
.chat-message span {
  display: block;
  margin-bottom: 9px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.purpose-examples h3 {
  font-size: 1.08rem;
}

.purpose-examples p,
.solution-examples p {
  margin: 10px 0 0;
  color: var(--muted);
}

.image-story {
  overflow: hidden;
  padding: 20px 0 92px;
}

.image-story__scroller {
  overflow: hidden;
}

.image-story__track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
  animation: gallery-drift 20s ease-in-out infinite alternate;
}

.image-story figure {
  position: relative;
  width: 460px;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms ease;
}

.image-story figure:hover img {
  transform: scale(1.05);
}

.image-story figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-radius: 8px;
  background: rgba(248, 251, 248, 0.88);
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.image-story__controls {
  display: none;
}

.approach-section {
  padding: 74px 0 102px;
}

.approach-section > .section-copy {
  max-width: 800px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.principles article {
  min-height: 236px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 15px 34px rgba(25, 47, 28, 0.08);
}

.principle-number {
  display: block;
  margin-bottom: 42px;
  color: var(--coral);
  font-weight: 900;
}

.principles p {
  margin: 18px 0 0;
  color: var(--muted);
}

.practice-note {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.practice-note p {
  margin-top: 0;
  font-size: 0.98rem;
}

.solutions-section {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 48px;
  align-items: center;
  padding: 84px 0 98px;
}

.solutions-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
}

.solutions-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: image-breathe 12s ease-in-out infinite alternate;
}

.solutions-copy p {
  margin-top: 20px;
}

.solution-list {
  display: grid;
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.solution-list li {
  padding: 18px 0 18px 20px;
  border-left: 4px solid var(--blue);
}

.solution-list span {
  display: block;
  color: var(--ink);
  font-weight: 850;
}

.solution-list p {
  margin: 6px 0 0;
  color: var(--muted);
}

.solution-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.solution-examples article {
  padding: 16px;
}

.solution-examples span {
  color: var(--green-deep);
}

.solution-examples p {
  font-size: 0.95rem;
}

.moment-section {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  align-items: end;
  border-radius: 8px;
  margin-block: 42px 104px;
  box-shadow: var(--shadow);
}

.moment-section > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: image-breathe 14s ease-in-out infinite alternate;
}

.moment-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(9, 24, 15, 0.78), rgba(9, 24, 15, 0.04) 70%);
}

.moment-section__copy {
  width: min(720px, 100%);
  padding: 48px;
  color: #fff;
}

.moment-section__copy .eyebrow {
  color: #ffdc72;
}

.moment-section__copy p {
  color: rgba(255, 255, 255, 0.9);
}

.moment-examples {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.moment-examples li {
  border-left: 4px solid var(--gold);
  padding: 6px 0 6px 14px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 760;
}

.contact-section {
  padding: 12px 0 94px;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 34px;
  align-items: start;
  max-width: 1080px;
  margin-inline: auto;
  text-align: left;
}

.chat-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 248, 0.88)),
    radial-gradient(circle at top right, rgba(231, 173, 48, 0.18), transparent 36%);
  box-shadow: var(--shadow);
  padding: 18px;
}

.topic-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.topic-option {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.topic-option:hover {
  transform: translateY(-1px);
  border-color: rgba(81, 143, 57, 0.34);
}

.topic-option.is-selected {
  border-color: var(--green);
  background: rgba(81, 143, 57, 0.12);
  color: var(--green-deep);
}

.chat-log {
  display: grid;
  gap: 12px;
  min-height: 246px;
  max-height: 380px;
  margin-top: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
  scroll-behavior: smooth;
}

.chat-message {
  max-width: 88%;
  border-radius: 8px;
  padding: 14px 16px;
}

.chat-message p {
  margin: 0;
  white-space: pre-wrap;
}

.chat-message--assistant {
  justify-self: start;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 12px 28px rgba(25, 47, 28, 0.08);
}

.chat-message--user {
  justify-self: end;
  background: var(--green);
  color: #fff;
}

.chat-message--user span {
  color: rgba(255, 255, 255, 0.82);
}

.chat-message--pending p {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.chat-message--pending p::after {
  content: "";
  width: 1.25em;
  animation: thinking 1.2s steps(4, end) infinite;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chat-suggestions button {
  border: 1px solid rgba(81, 143, 57, 0.2);
  border-radius: 8px;
  background: rgba(81, 143, 57, 0.08);
  color: var(--green-deep);
  cursor: pointer;
  padding: 9px 11px;
  font-size: 0.92rem;
  font-weight: 780;
}

.chat-suggestions button:hover {
  border-color: rgba(81, 143, 57, 0.36);
  background: rgba(81, 143, 57, 0.13);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 18px;
}

.chat-input {
  min-height: 58px;
  max-height: 170px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
}

.chat-input::placeholder {
  color: rgba(77, 91, 81, 0.72);
}

.chat-input:disabled,
.chat-form .button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.chat-email-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.chat-email-actions[hidden] {
  display: none;
}

.chat-email-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.chat-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--green-deep);
  font-weight: 800;
}

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

.site-footer {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 28px max(20px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer img {
  width: 164px;
  height: auto;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--bg);
}

.site-footer p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-pan {
  from {
    transform: scale(1.04) translate3d(-1.2%, -0.8%, 0);
  }

  to {
    transform: scale(1.1) translate3d(1.2%, 0.8%, 0);
  }
}

@keyframes cue {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  35% {
    opacity: 1;
  }

  70% {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

@keyframes gallery-drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-120px);
  }
}

@keyframes image-breathe {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

@keyframes thinking {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75%,
  100% {
    content: "...";
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    gap: 8px;
    padding-block: 8px;
  }

  .brand {
    flex: 0 0 auto;
    width: 126px;
    min-width: 0;
    transition:
      opacity 180ms ease,
      padding 180ms ease,
      width 180ms ease;
  }

  .site-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    max-width: none;
    gap: 4px;
    padding: 5px;
  }

  .site-nav a {
    flex: 1 1 0;
    padding: 7px 6px;
    font-size: 0.82rem;
    text-align: center;
    white-space: nowrap;
  }

  .site-header.is-scrolled .brand {
    width: 0;
    padding-inline: 0;
    opacity: 0;
    pointer-events: none;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .intro-band,
  .solutions-section {
    grid-template-columns: 1fr;
  }

  .purpose-examples,
  .solution-examples,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    gap: 24px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principles article {
    min-height: auto;
  }

  .principle-number {
    margin-bottom: 24px;
  }

}

@media (max-width: 680px) {
  :root {
    --content: min(100% - 30px, 1120px);
  }

  .site-header {
    position: sticky;
    top: 0;
    flex-wrap: nowrap;
    gap: 6px;
    min-height: auto;
    padding: 7px 12px;
    background: rgba(248, 251, 248, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .brand {
    width: 96px;
    min-width: 0;
    padding: 2px 0;
    box-shadow: none;
  }

  .site-nav {
    width: auto;
    max-width: none;
    gap: 3px;
    padding: 3px;
    box-shadow: none;
  }

  .site-nav a {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 3px;
    font-size: 0.72rem;
    text-align: center;
  }

  .hero {
    min-height: 72svh;
    padding-top: 50px;
    padding-bottom: 36px;
  }

  .hero__image {
    object-position: 64% center;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(17, 29, 20, 0.88), rgba(17, 29, 20, 0.53) 78%, rgba(17, 29, 20, 0.24)),
      linear-gradient(0deg, rgba(12, 23, 15, 0.58), rgba(12, 23, 15, 0.06) 60%);
  }

  h1 {
    max-width: 12ch;
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero__lead {
    font-size: 1.05rem;
  }

  .hero__actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .intro-band,
  .approach-section,
  .solutions-section {
    padding-block: 64px;
  }

  .intro-band {
    padding-block: 16px 56px;
  }

  .image-story {
    overflow: visible;
    padding-bottom: 54px;
  }

  .image-story__scroller {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 15px;
    scroll-snap-type: inline mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .image-story__track {
    gap: 12px;
    padding-inline: 15px;
    animation: none;
  }

  .image-story figure {
    width: calc(100vw - 46px);
    flex: 0 0 auto;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .image-story__controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: var(--content);
    margin: 14px auto 0;
  }

  .image-story__controls button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(25, 47, 28, 0.1);
  }

  .image-story__controls button:disabled {
    cursor: default;
    opacity: 0.35;
  }

  .solutions-section {
    gap: 30px;
  }

  .purpose-examples {
    gap: 12px;
  }

  .chat-panel {
    padding: 14px;
  }

  .topic-options,
  .chat-form,
  .chat-email-actions {
    grid-template-columns: 1fr;
  }

  .chat-message {
    max-width: 100%;
  }

  .chat-log {
    max-height: 430px;
    padding: 12px;
  }

  .moment-section {
    min-height: 500px;
    margin-bottom: 72px;
  }

  .moment-section__copy {
    padding: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
