:root {
  --ink: #10120f;
  --ink-soft: #242820;
  --cream: #f5efdf;
  --warm-white: #fffaf0;
  --sky: #57b9ee;
  --sky-soft: #bfe8fb;
  --grass: #249447;
  --grass-deep: #0f5f35;
  --sun: #ffd84a;
  --muted: #586156;
  --space-page: clamp(20px, 5.4vw, 78px);
  --section-y: clamp(78px, 11vw, 158px);
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --grid-gap: clamp(14px, 2vw, 28px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--warm-white);
  padding: 12px 16px;
  font-weight: 800;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand-mark {
  font-family: Archivo, Inter, system-ui, sans-serif;
  letter-spacing: -0.015em;
}

h1,
h2 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
  padding: 12px var(--space-page);
  background: rgba(245, 239, 223, 0.9);
  box-shadow: 0 1px 0 rgba(16, 18, 15, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  font-size: 1.72rem;
  font-weight: 800;
  line-height: 0.9;
}

.brand-name {
  max-width: 260px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.site-nav {
  display: none;
}

.site-nav a {
  position: relative;
  min-height: 40px;
  color: rgba(16, 18, 15, 0.66);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition-property: color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition-property: transform;
  transition-duration: 180ms;
  transition-timing-function: var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--warm-white);
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: currentColor;
  text-indent: -999px;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
}

.nav-toggle-lines::before {
  transform: translateY(-7px);
}

.nav-toggle-lines::after {
  transform: translateY(7px);
}

.nav-open .site-nav {
  position: fixed;
  inset: 74px 0 auto;
  display: grid;
  gap: 2px;
  padding: 18px var(--space-page) 26px;
  background: var(--cream);
  box-shadow: 0 26px 70px rgba(16, 18, 15, 0.18);
}

.nav-open .site-nav a {
  display: flex;
  align-items: center;
  padding: 14px 0;
  font-size: 1.08rem;
}

.nav-cta,
.button {
  border-radius: var(--radius);
  text-decoration: none;
}

.nav-cta {
  justify-content: center;
  background: var(--ink);
  color: var(--warm-white) !important;
  padding-inline: 18px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  gap: 12px;
  padding: 14px 20px 14px 24px;
  border: 2px solid var(--ink);
  font-weight: 800;
  transition-property: transform, background-color, color, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: var(--ease);
}

.button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition-property: transform;
  transition-duration: 180ms;
  transition-timing-function: var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(16, 18, 15, 0.14);
}

.button:hover::after {
  transform: translateX(3px) rotate(45deg);
}

.button:active {
  transform: scale(0.96);
}

.primary {
  background: var(--ink);
  color: var(--warm-white);
}

.hero {
  position: relative;
  min-height: min(860px, calc(100vh - 74px));
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(108deg, rgba(255, 250, 240, 0.8) 0 45%, rgba(255, 250, 240, 0.18) 45.2%),
    linear-gradient(180deg, rgba(87, 185, 238, 0.08), rgba(217, 239, 208, 0.18)),
    url("img/clouds.jpg") center top / cover no-repeat,
    linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 58%, #d9efd0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -12vw -11vw -12vw;
  z-index: 1;
  height: min(29vh, 270px);
  background: var(--grass);
  clip-path: polygon(0 46%, 22% 30%, 45% 44%, 62% 18%, 82% 34%, 100% 12%, 100% 100%, 0 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -14vw;
  top: 18vh;
  z-index: 0;
  width: min(38vw, 520px);
  aspect-ratio: 0.72;
  background: rgba(255, 250, 240, 0.42);
  clip-path: polygon(20% 0, 100% 8%, 78% 100%, 0 86%);
  transform: rotate(8deg);
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
  display: grid;
  align-content: center;
  min-height: min(860px, calc(100vh - 74px));
  width: min(56%, 820px);
  padding: clamp(58px, 8vw, 106px) var(--space-page) clamp(170px, 17vw, 260px);
}

h1 {
  max-width: 100%;
  margin-bottom: 24px;
  font-size: 5.6em;
  font-weight: 800;
  line-height: 0.79;
  letter-spacing: -0.055em;
}

.hero-title span {
  display: block;
}

.hero-copy p {
  max-width: 100%;
  margin-left: 0;
  margin-bottom: 0;
  color: #203632;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
}

.hero-actions {
  margin-top: 26px;
  margin-left: 0;
}

.landscape {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.sun {
  position: absolute;
  right: clamp(24px, 7vw, 112px);
  top: clamp(90px, 14vw, 190px);
  width: clamp(66px, 8.4vw, 116px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 0 0 0 16px rgba(255, 216, 74, 0.22);
  animation: sunPulse 6s ease-in-out infinite alternate;
}

.pasture {
  position: absolute;
  left: -10vw;
  right: -10vw;
  height: 26vh;
  min-height: 176px;
  background: var(--grass-deep);
}

.pasture-back {
  bottom: 62px;
  z-index: 1;
  opacity: 0.56;
  clip-path: polygon(0 50%, 22% 38%, 42% 50%, 61% 26%, 82% 44%, 100% 30%, 100% 100%, 0 100%);
}

.hero-mascot {
  position: absolute;
  right: max(var(--space-page), 8vw);
  bottom: clamp(142px, 17vh, 210px);
  z-index: 2;
  width: min(42vw, 610px);
  height: auto;
  filter: drop-shadow(0 26px 34px rgba(16, 18, 15, 0.24));
}

.pasture-front {
  bottom: -2px;
  z-index: 3;
  background: linear-gradient(110deg, var(--grass-deep), var(--grass));
  clip-path: polygon(0 42%, 18% 18%, 36% 36%, 55% 13%, 72% 30%, 88% 12%, 100% 22%, 100% 100%, 0 100%);
}

.section {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  padding: var(--section-y) var(--space-page);
}

.section h2 {
  margin-bottom: clamp(28px, 4vw, 54px);
  font-size: 4em;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.05em;
}

.section p {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.services {
  overflow: hidden;
  background: var(--cream);
}

.services::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 28px;
  background: var(--grass-deep);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 100%);
}

.section-heading {
  grid-column: 1 / 11;
  max-width: 1100px;
}

.service-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: clamp(18px, 4vw, 54px);
}

.service-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  align-content: start;
  min-height: 320px;
  padding: clamp(24px, 3vw, 38px);
  border: 2px solid var(--ink);
  background: rgba(255, 250, 240, 0.48);
}

.service-panel::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 24px;
  width: clamp(52px, 8vw, 110px);
  height: clamp(38px, 5.6vw, 78px);
  border-radius: 58% 42% 66% 34% / 44% 60% 40% 56%;
  background: var(--ink);
  opacity: 0;
  transform: rotate(-12deg);
  transition-property: opacity, transform;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.service-panel:hover::after {
  opacity: 0.08;
  transform: rotate(-6deg);
}

.service-panel span {
  color: var(--grass-deep);
  font-size: 0.9rem;
  font-weight: 800;
  justify-self: start;
  text-align: left;
}

.service-panel h3 {
  margin: 0;
  font-size: 2.45em;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.service-panel p {
  max-width: 34ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.48;
}

.service-large,
.service-panel.dark {
  background: rgba(255, 250, 240, 0.48);
  color: var(--ink);
  box-shadow: none;
}

.service-panel.dark p,
.service-panel.dark span {
  color: var(--ink-soft);
}

.system {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(38px, 7vw, 90px);
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(115deg, var(--sky) 0 44%, var(--warm-white) 44.2% 100%);
  color: var(--ink);
}

.system-copy {
  grid-column: 1 / 7;
  max-width: 760px;
}

.system p {
  color: #263f43;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
}

.process-list {
  grid-column: 8 / -1;
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: clamp(24px, 4vw, 42px);
  list-style: none;
  background: var(--ink);
  color: var(--warm-white);
  box-shadow: 18px 18px 0 rgba(16, 18, 15, 0.1);
}

.process-list::before {
  content: "COWS.AI";
  display: block;
  margin-bottom: 22px;
  color: var(--sun);
  font-family: Archivo, Inter, system-ui, sans-serif;
  font-size: 2.6em;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.process-list li {
  display: block;
  align-items: center;
  min-height: 64px;
  border-top: 1px solid rgba(255, 250, 240, 0.18);
  padding: 14px 0;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 700;
}

.process-list li:last-child {
  border-bottom: 1px solid rgba(255, 250, 240, 0.18);
}

.process-list li::before {
  content: none;
}

.about {
  overflow: hidden;
  background: var(--warm-white);
}

.about::before {
  content: "";
  position: absolute;
  left: -10vw;
  top: 10%;
  width: min(40vw, 520px);
  aspect-ratio: 1.1;
  border-radius: 58% 42% 64% 36% / 44% 60% 40% 56%;
  background: var(--ink);
  opacity: 0.045;
  transform: rotate(16deg);
}

.about-card {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 82px);
  width: 100%;
  padding: 0;
}

.about-copy {
  max-width: 780px;
}

.about-copy p {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
}

.about-copy p:nth-of-type(2) {
  max-width: 650px;
  margin-block: 0;
  color: var(--ink-soft);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-content: start;
}

.specialist-panel {
  display: grid;
  align-content: end;
  min-height: 390px;
  background: var(--ink);
  color: var(--warm-white);
  padding: clamp(24px, 4vw, 44px);
}

.specialist-panel h3 {
  max-width: 12ch;
  margin-bottom: 30px;
  color: var(--warm-white);
  font-size: 2em;
  font-weight: 800;
  line-height: 0.92;
}

.specialist-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.specialist-panel li {
  border: 1px solid rgba(255, 250, 240, 0.26);
  border-radius: 999px;
  background: transparent;
  padding: 8px 11px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(34px, 7vw, 92px);
  align-items: end;
  overflow: hidden;
  background: var(--grass-deep);
}

.contact-copy {
  grid-column: 1 / -1;
  color: var(--warm-white);
}

.contact-copy h2 {
  color: var(--warm-white);
}

.contact-copy p {
  max-width: 680px;
  color: rgba(255, 250, 240, 0.78);
}

.email-line {
  margin-top: clamp(24px, 4vw, 44px);
  font-family: Archivo, Inter, system-ui, sans-serif;
  font-size: clamp(1.4rem, 3vw, 3.1rem) !important;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.email-line a {
  color: var(--warm-white);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.contact-email {
  margin-top: clamp(18px, 3vw, 34px);
  background: var(--warm-white);
  color: var(--ink);
}

.site-footer {
  display: grid;
  gap: 28px;
  align-items: start;
  padding: 34px var(--space-page);
  background: var(--ink);
  color: var(--warm-white);
}

.site-footer strong {
  font-family: Archivo, Inter, system-ui, sans-serif;
  font-size: 1.7rem;
}

.site-footer p,
.site-footer ul {
  margin: 0;
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.92rem;
}

.site-footer ul {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition-property: opacity, transform;
  transition-duration: 520ms;
  transition-timing-function: var(--ease);
}

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

@keyframes sunPulse {
  from {
    box-shadow: 0 0 0 12px rgba(255, 216, 74, 0.18);
  }

  to {
    box-shadow: 0 0 0 22px rgba(255, 216, 74, 0.25);
  }
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 26px);
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
  }

  .nav-cta {
    min-height: 42px;
  }

  .nav-toggle {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (min-width: 1120px) {
  .about-card {
    grid-template-columns: minmax(0, 0.8fr) minmax(480px, 1.15fr);
    align-items: center;
  }
}

@media (max-width: 980px) {
  .why,
  .system,
  .contact {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .service-layout,
  .system-copy,
  .process-list,
  .about-card,
  .contact-copy {
    grid-column: 1 / -1;
  }

  .about-visual {
    grid-template-columns: minmax(0, 1fr);
  }

  .specialist-panel {
    min-height: 300px;
  }

  .hero-copy {
    width: min(68%, 700px);
  }

  .hero-mascot {
    right: max(18px, 3vw);
    bottom: clamp(128px, 16vh, 180px);
    width: min(44vw, 430px);
  }

  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-panel {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 690px;
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.8) 0 48%, rgba(255, 250, 240, 0.18) 48.2%),
      linear-gradient(180deg, rgba(87, 185, 238, 0.08), rgba(217, 239, 208, 0.18)),
      url("img/clouds.jpg") center top / cover no-repeat,
      linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 58%, #d9efd0 100%);
  }

  .hero::after {
    right: -180px;
    top: 320px;
    width: 310px;
  }

  .hero-copy {
    min-height: 690px;
    width: 100%;
    align-content: start;
    padding-top: 62px;
    padding-bottom: 245px;
  }

  .hero-mascot {
    right: -34px;
    bottom: 138px;
    width: min(78vw, 360px);
  }

  h1 {
    max-width: 100%;
    font-size: 2.35em;
    overflow-wrap: break-word;
  }

  .hero-copy p,
  .hero-actions {
    margin-left: 0;
  }

  .hero-copy p {
    max-width: 100%;
    font-size: 0.96rem;
    overflow-wrap: break-word;
  }

  .service-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-panel span,
  .service-panel h3,
  .service-panel p {
    grid-column: auto;
  }

  .service-panel h3 {
    font-size: 2.35em;
    overflow-wrap: anywhere;
  }

  .service-panel p {
    max-width: 36ch;
    overflow-wrap: break-word;
  }

  .section h2 {
    font-size: 2.65em;
  }

  .button {
    width: auto;
    min-width: min(100%, 280px);
  }

  .process-list {
    box-shadow: 10px 10px 0 rgba(16, 18, 15, 0.1);
  }

  .about-card,
  .about-visual {
    grid-template-columns: 1fr;
  }

  .about-copy,
  .about-visual {
    grid-column: 1 / -1;
  }

}

@media (max-width: 420px) {
  .brand-name {
    max-width: 210px;
  }

  .section {
    padding-block: clamp(70px, 18vw, 96px);
  }

  .specialist-panel {
    min-height: 260px;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
