:root {
  --color-forest: #23493f;
  --color-forest-deep: #17342d;
  --color-ocean: #1e5564;
  --color-sand: #efe7d9;
  --color-cream: #fbf8f2;
  --color-white: #ffffff;
  --color-ink: #17312d;
  --color-muted: #5e746e;
  --color-line: rgba(29, 62, 54, 0.12);
  --shadow-soft: 0 18px 42px rgba(19, 48, 41, 0.08);
  --shadow-card: 0 16px 36px rgba(25, 54, 48, 0.07);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --container: min(1240px, calc(100% - 40px));
  --header-height: 108px;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Rubik", "Segoe UI", sans-serif;
  color: var(--color-ink);
  background: linear-gradient(180deg, #f8f5ef 0%, #fbfaf7 26%, #ffffff 100%);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 120px 0;
}

.eyebrow {
  margin: 0 0 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ocean);
  font-size: 0.75rem;
  font-weight: 700;
}

.section-heading {
  max-width: 680px;
}

.section-heading--center {
  text-align: center;
  margin: 0 auto 56px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 600;
  color: var(--color-forest-deep);
}

.section-heading__lead {
  margin: 18px auto 0;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

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

.button--primary {
  background: linear-gradient(135deg, #1e5564 0%, #23493f 100%);
  color: var(--color-white);
  box-shadow: 0 12px 24px rgba(28, 80, 84, 0.16);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  backdrop-filter: blur(10px);
}

.button--card {
  width: fit-content;
  background: rgba(35, 73, 63, 0.08);
  color: var(--color-forest-deep);
  border-color: rgba(35, 73, 63, 0.12);
}

.button--card-disabled {
  pointer-events: none;
  background: rgba(35, 73, 63, 0.06);
  color: rgba(23, 52, 45, 0.58);
  border-color: rgba(35, 73, 63, 0.08);
}

.button--card:hover,
.button--card:focus-visible {
  background: var(--color-forest-deep);
  color: var(--color-white);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition:
    background-color var(--transition),
    box-shadow var(--transition),
    backdrop-filter var(--transition),
    border-color var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(21, 48, 42, 0.06);
  border-bottom: 1px solid rgba(35, 73, 63, 0.08);
}

.header__inner {
  min-height: var(--header-height);
  padding: 10px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.header__controls {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: stretch;
  gap: 34px;
  min-width: 0;
}

.brand {
  position: relative;
  display: inline-block;
  align-items: center;
  width: clamp(142px, 14vw, 196px);
  height: 74px;
}

.brand__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity var(--transition);
}

.brand__logo--dark {
  opacity: 0;
}

.site-header.is-scrolled .brand__logo--light {
  opacity: 0;
}

.site-header.is-scrolled .brand__logo--dark {
  opacity: 1;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  justify-self: center;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  transition: color var(--transition);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

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

.site-header.is-scrolled .site-nav a {
  color: var(--color-forest-deep);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.language-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), opacity var(--transition);
  opacity: 0.78;
}

.language-flag img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 2px;
}

.language-flag.is-active,
.language-flag:hover,
.language-flag:focus-visible {
  border-color: rgba(255, 255, 255, 0.44);
  transform: translateY(-1px);
  opacity: 1;
}

.site-header.is-scrolled .language-flag.is-active,
.site-header.is-scrolled .language-flag:hover,
.site-header.is-scrolled .language-flag:focus-visible {
  border-color: rgba(35, 73, 63, 0.18);
}

.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 28px rgba(22, 47, 41, 0.1);
  cursor: pointer;
  position: relative;
  z-index: 4;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--color-forest-deep);
  transition: transform var(--transition), opacity var(--transition);
}

.site-header:not(.is-scrolled) .menu-toggle {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.site-header:not(.is-scrolled) .menu-toggle span {
  background: var(--color-white);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 88svh;
  padding: calc(var(--header-height) + 64px) 0 72px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 42, 37, 0.44), rgba(15, 42, 37, 0.22)),
    url("assets/hero-home.png") center/cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(88svh - var(--header-height));
  text-align: center;
}

.hero__statement {
  max-width: 860px;
  margin: 0;
  font-family: "Salsa", "Brush Script MT", cursive;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.18;
  color: var(--color-white);
  text-wrap: balance;
  text-shadow: 0 8px 30px rgba(14, 30, 28, 0.18);
}

.section--about {
  position: relative;
  padding-top: 96px;
  padding-bottom: 88px;
}

.about__title {
  display: block;
  margin: 0 0 20px;
  max-width: 760px;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-forest-deep);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 420px);
  gap: 44px;
  margin-top: 0;
  align-items: center;
}

.about__highlight {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.35;
  font-weight: 500;
  color: var(--color-forest-deep);
}

.about__content p {
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.about__signature {
  margin-top: 24px;
  font-weight: 700;
  color: var(--color-forest-deep);
  white-space: pre-line;
}

.about__visual {
  position: relative;
  padding-bottom: 34px;
}

.about__visual::before {
  content: "";
  position: absolute;
  inset: 34px -18px auto auto;
  width: 140px;
  height: 140px;
  border-radius: 32px;
  background: rgba(28, 85, 100, 0.08);
  z-index: -1;
}

.about__photo-frame {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 22px 60px rgba(23, 52, 45, 0.14);
}

.about__visual img {
  width: 100%;
  min-height: 420px;
  max-height: 520px;
  object-fit: cover;
}

.about__caption {
  position: absolute;
  right: -10px;
  bottom: 0;
  display: grid;
  gap: 4px;
  width: min(100%, 290px);
  padding: 16px 20px;
  border-radius: 26px 26px 0 26px;
  background: linear-gradient(135deg, #237247 0%, #2f8d55 100%);
  color: var(--color-white);
  box-shadow: 0 18px 44px rgba(28, 82, 55, 0.24);
}

.about__caption strong {
  font-size: 1.15rem;
  line-height: 1.2;
}

.about__caption span {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section--companies {
  background: linear-gradient(180deg, rgba(248, 245, 239, 0.58), rgba(255, 255, 255, 0));
}

.companies-stack {
  display: grid;
  gap: 0;
}

.company-showcase {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 36px;
  padding: 40px 0;
  border-top: 1px solid rgba(26, 58, 53, 0.1);
}

.company-showcase:first-child {
  padding-top: 0;
  border-top: 0;
}

.company-showcase:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
}

.company-showcase:nth-child(even) .company-showcase__media {
  order: 2;
}

.company-showcase__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0;
}

.company-showcase__eyebrow {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ocean);
}

.company-showcase h3 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.06;
  font-weight: 500;
  color: var(--color-forest-deep);
}

.company-showcase p:not(.company-showcase__eyebrow) {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--color-muted);
  line-height: 1.9;
}

.company-showcase__media {
  position: relative;
  min-height: 360px;
  aspect-ratio: 1 / 0.84;
  border-radius: 28px;
  overflow: hidden;
}

.company-showcase__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(17, 33, 29, 0), rgba(17, 33, 29, 0.3));
}

.company-showcase__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.company-showcase__media-link {
  display: block;
}

.company-showcase__media-link:focus-visible {
  outline: 3px solid rgba(35, 73, 63, 0.22);
  outline-offset: 6px;
}

.company-showcase--earth .company-showcase__image {
  object-position: center 24%;
}

.company-showcase:hover .company-showcase__image,
.company-showcase:focus-within .company-showcase__image {
  transform: scale(1.03);
}

.site-footer {
  padding: 34px 0 42px;
  background: linear-gradient(180deg, rgba(23, 52, 45, 0.04), rgba(23, 52, 45, 0.08));
  border-top: 1px solid rgba(22, 47, 41, 0.08);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: center;
}

.site-footer__brand strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.site-footer__brand p,
.site-footer__copy {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.site-footer__nav {
  display: inline-flex;
  gap: 18px;
}

.site-footer__nav a {
  color: var(--color-forest-deep);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .header__inner {
    grid-template-columns: auto auto;
    gap: 16px;
    position: relative;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-block;
  }

  .header__controls {
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(35, 73, 63, 0.08);
    box-shadow: 0 24px 48px rgba(19, 48, 41, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity var(--transition),
      transform var(--transition),
      visibility var(--transition);
  }

  .header__controls.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav {
    display: grid;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .site-nav a {
    padding: 8px 0;
    color: var(--color-forest-deep);
  }

  .language-switcher {
    flex-wrap: wrap;
    gap: 12px;
  }

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

  .about__visual {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
  }

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

@media (max-width: 820px) {
  :root {
    --header-height: 96px;
  }

  .section {
    padding: 88px 0;
  }

  .hero {
    min-height: 72svh;
    padding-bottom: 52px;
  }

  .hero__statement {
    font-size: clamp(2.1rem, 9vw, 3.6rem);
    line-height: 1.08;
  }

  .section-heading h2,
  .about__title {
    font-size: clamp(2.2rem, 8vw, 3.4rem);
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 28px);
  }

  .brand__text small {
    display: none;
  }

  .brand {
    width: 132px;
    height: 64px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 54px);
    min-height: 62svh;
  }

  .hero__content {
    min-height: calc(62svh - var(--header-height));
  }

  .hero__statement {
    max-width: 10ch;
    font-size: clamp(1.9rem, 11vw, 3rem);
    line-height: 1.04;
  }

  .button {
    width: 100%;
  }

  .section-heading--center {
    margin-bottom: 34px;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 0.98;
  }

  .section-heading__lead {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .about__grid {
    gap: 24px;
  }

  .about__title {
    margin-bottom: 14px;
    font-size: clamp(2.1rem, 10vw, 2.9rem);
    line-height: 0.96;
  }

  .about__highlight {
    margin-bottom: 14px;
    font-size: 1.2rem;
    line-height: 1.32;
  }

  .about__content p {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .about__visual {
    order: initial;
    padding-bottom: 28px;
  }

  .about__visual img {
    border-radius: 26px;
    min-height: 280px;
    max-height: 360px;
  }

  .about__caption {
    right: 0;
    width: min(calc(100% - 12px), 250px);
    padding: 14px 16px;
    border-radius: 22px;
  }

  .about__caption strong {
    font-size: 0.92rem;
  }

  .about__caption span {
    font-size: 0.72rem;
  }

  .company-showcase,
  .company-showcase:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
    align-items: start;
  }

  .company-showcase:nth-child(even) .company-showcase__media {
    order: initial;
  }

  .company-showcase__content {
    padding: 0;
  }

  .company-showcase__eyebrow {
    margin-bottom: 8px;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .company-showcase h3 {
    margin-bottom: 10px;
    font-size: clamp(1.1rem, 5.8vw, 1.45rem);
    line-height: 1.04;
  }

  .company-showcase p:not(.company-showcase__eyebrow) {
    margin-bottom: 14px;
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .company-showcase__media {
    min-height: 220px;
    aspect-ratio: 1 / 0.82;
    border-radius: 18px;
  }

  .button--card {
    width: 100%;
    min-height: 42px;
    padding-inline: 14px;
    font-size: 0.84rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
