:root {
  --paper: #f7f4ec;
  --ink: #1e2926;
  --blue: #557792;
  --green: #66795d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: visible;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-overflow-scrolling: touch;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 31px clamp(24px, 4.3vw, 72px);
}

.wordmark {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo-family {
  height: 64px;
  max-width: 93px;
}

.brand-logo-card {
  height: 70px;
  max-width: 86px;
  margin-bottom: 10px;
}

nav {
  display: flex;
  gap: clamp(24px, 4vw, 62px);
}

nav a {
  font-size: 16px;
  transition: color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--blue);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(128px, 13vh, 154px) clamp(24px, 4.3vw, 72px) 24px;
  isolation: isolate;
}

.flow-art {
  position: absolute;
  z-index: -2;
  top: 4%;
  right: -7%;
  width: min(74vw, 1180px);
  height: 74%;
  background: url("images/flow-production.png") center / contain no-repeat;
  opacity: 0.9;
  mix-blend-mode: multiply;
  animation: breathe 16s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 770px;
}

.eyebrow {
  margin: 0 0 24px;
  color: #9b774f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(50px, 5.25vw, 82px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.lead {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(30, 41, 38, 0.78);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
}

.ecosystems {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(46px, 7vh, 76px);
}

.ecosystem {
  position: relative;
  display: block;
  min-height: 258px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 30px;
  background: rgba(250, 250, 247, 0.78);
  box-shadow:
    0 16px 40px rgba(63, 57, 45, 0.11),
    inset 0 0 0 1px rgba(71, 74, 66, 0.06);
  transition:
    transform 250ms ease,
    box-shadow 250ms ease;
}

a.ecosystem:hover,
a.ecosystem:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    0 22px 48px rgba(63, 57, 45, 0.16),
    inset 0 0 0 1px rgba(71, 74, 66, 0.1);
}

.card-content {
  position: absolute;
  z-index: 2;
  top: 39px;
  right: clamp(30px, 4vw, 74px);
  display: flex;
  min-width: 44%;
  height: calc(100% - 75px);
  flex-direction: column;
  align-items: flex-start;
}

.ecosystem-it .card-category,
.ecosystem-it .card-action {
  color: #2d618c;
}

.ecosystem-nutri .card-category {
  color: #536c48;
}

.card-category {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 500;
}

.card-description {
  color: rgba(30, 41, 38, 0.73);
  font-size: 16px;
}

.card-action {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  font-size: 17px;
}

.arrow {
  width: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 220ms ease;
}

a.ecosystem:hover .arrow {
  transform: translateX(6px);
}

.muted-action {
  color: rgba(83, 108, 72, 0.68);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orb {
  position: absolute;
  bottom: -54px;
  left: -10px;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 45% 55% 58% 42%;
  opacity: 0.8;
}

.orb::before,
.orb::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.orb::before {
  inset: 12% -16% 6% 24%;
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.orb::after {
  inset: 27% -3% 23% 38%;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.orb-blue {
  background:
    radial-gradient(circle at 66% 32%, rgba(107, 155, 188, 0.55), transparent 28%),
    radial-gradient(circle at 43% 58%, rgba(55, 112, 154, 0.74), rgba(205, 224, 235, 0.42) 58%, transparent 60%);
}

.orb-green {
  background:
    radial-gradient(circle at 65% 28%, rgba(107, 132, 87, 0.65), transparent 30%),
    radial-gradient(circle at 42% 58%, rgba(92, 118, 71, 0.72), rgba(219, 227, 206, 0.58) 59%, transparent 61%);
}

.philosophy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-top: 25px;
  color: #a5845d;
}

.philosophy span {
  width: 150px;
  height: 1px;
  background: rgba(165, 132, 93, 0.46);
}

.philosophy p {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
}

.language-switcher {
  position: fixed;
  z-index: 20;
  right: clamp(24px, 4.3vw, 72px);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 5px;
  border: 1px solid rgba(165, 143, 105, 0.48);
  border-radius: 999px;
  background: rgba(247, 244, 236, 0.84);
  box-shadow:
    0 10px 28px rgba(63, 57, 45, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.language-option {
  min-width: 34px;
  margin: 0;
  padding: 7px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(30, 41, 38, 0.48);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.language-option:hover,
.language-option:focus-visible {
  color: #765a3c;
}

.language-option:focus-visible {
  outline: 2px solid rgba(155, 119, 79, 0.42);
  outline-offset: 2px;
}

.language-option.is-active {
  background: linear-gradient(135deg, #ecdfc7, #d8bd91);
  box-shadow:
    0 3px 9px rgba(107, 82, 49, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.44);
  color: var(--ink);
}

.language-divider {
  color: rgba(132, 120, 101, 0.56);
  font-size: 11px;
  line-height: 1;
}

@keyframes breathe {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-1.2%, 1%, 0) scale(1.025);
  }
}

@media (min-width: 541px) and (max-width: 820px) {
  .site-header {
    position: relative;
    padding-block: 25px;
  }

  nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .flow-art {
    top: 11%;
    right: -56%;
    width: 125vw;
    height: 55%;
    opacity: 0.58;
    background-image: url("images/flow-mobile.png");
    mix-blend-mode: normal;
    animation: none;
  }

  .hero-copy {
    max-width: 650px;
  }

  .ecosystems {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .ecosystem {
    min-height: 238px;
  }

  .card-content {
    right: 8%;
  }

  .language-switcher {
    right: 24px;
    bottom: 24px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 540px) {
  .site-header {
    position: relative;
    display: block;
    padding: 28px 20px 20px;
  }

  .wordmark {
    width: max-content;
    margin-inline: auto;
  }

  .brand-logo-family {
    width: 200px;
    max-width: 100%;
    height: auto;
  }

  .hero {
    min-height: auto;
    padding: 40px 20px 22px;
  }

  .eyebrow {
    margin-bottom: 19px;
    font-size: 11px;
    text-align: center;
  }

  h1 {
    font-size: clamp(45px, 13.4vw, 61px);
    line-height: 0.98;
    text-align: center;
  }

  .lead {
    margin-top: 20px;
    text-align: center;
  }

  .flow-art {
    top: 26%;
    right: -60%;
    width: 150vw;
    height: 55%;
    opacity: 0.42;
    background-image: url("images/flow-mobile.png");
    mix-blend-mode: normal;
    animation: none;
  }

  .ecosystems {
    isolation: isolate;
    z-index: 0;
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .ecosystems::before {
    position: absolute;
    z-index: -1;
    top: -60px;
    right: -20px;
    bottom: -12px;
    left: -20px;
    background: var(--paper);
    content: "";
  }

  .ecosystem {
    min-height: 224px;
    border-radius: 25px;
  }

  .orb {
    left: -28px;
    width: 58%;
    opacity: 0.66;
  }

  .card-content {
    top: 32px;
    right: 24px;
    min-width: 56%;
    height: calc(100% - 62px);
  }

  .brand-logo-card {
    height: 64px;
    max-width: 78px;
    margin-bottom: 8px;
  }

  .card-category {
    font-size: 16px;
  }

  .card-description {
    max-width: 175px;
    font-size: 14px;
  }

  .philosophy {
    gap: 14px;
  }

  .philosophy span {
    width: 30px;
  }

  .philosophy p {
    font-size: 17px;
  }

  .language-switcher {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    background: rgba(247, 244, 236, 0.92);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body::before {
    position: absolute;
    opacity: 0.1;
    background-image: radial-gradient(rgba(30, 41, 38, 0.16) 0.45px, transparent 0.6px);
    background-size: 4px 4px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .flow-art {
    background-image: url("images/flow-mobile.png");
    mix-blend-mode: normal;
    animation: none;
  }

  .language-switcher {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  a.ecosystem:hover,
  a.ecosystem:focus-visible {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
