/* =========================================================
   HOME.CSS — AINULT AVALEHT
   Laadida ainult index.html lehel pärast style.css faili.
   ========================================================= */

/* =========================================================
   AVALEHT — WOW DESIGN 2026
   Ainult avalehele: kõik reeglid on seotud body.home-page
   Põhivärvid jäävad samaks:
   #E9F1CB, #0E3B03, #254B10, #5CE413, #FFFFFF
   ========================================================= */

body.home-page {
  --home-bg: #e9f1cb;
  --home-dark: #0e3b03;
  --home-green: #254b10;
  --home-accent: #5ce413;
  --home-white: #ffffff;
  --home-soft-white: rgba(255, 255, 255, 0.78);
  --home-border: rgba(14, 59, 3, 0.14);
  --home-text-soft: rgba(14, 59, 3, 0.72);
  --home-shadow: 0 22px 60px rgba(14, 59, 3, 0.13);
  --home-shadow-strong: 0 35px 90px rgba(14, 59, 3, 0.22);

  overflow-x: hidden;
  background: var(--home-bg);
  color: var(--home-dark);
}

body.home-page .home-main {
  overflow: clip;
}

body.home-page .home-container {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}


/* -------------------------
   Avalehe päis
   ------------------------- */

body.home-page .header {
  background: #ffffff;
  border-bottom-color: rgba(14, 59, 3, 0.1);
  box-shadow: 0 8px 28px rgba(14, 59, 3, 0.1);
}

@media (max-width: 1200px) {

  body.home-page .menu-toggle {
    border: 1px solid rgba(92, 228, 19, 0.55);
    border-radius: 14px;

    background:
      linear-gradient(
        145deg,
        var(--home-dark),
        var(--home-green)
      );

    color: var(--home-accent);

    box-shadow:
      0 8px 20px rgba(14, 59, 3, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.13);

    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease,
      background 0.22s ease,
      color 0.22s ease;
  }

  body.home-page .menu-toggle:hover {
    transform: translateY(-2px);

    box-shadow:
      0 12px 28px rgba(14, 59, 3, 0.28),
      0 0 18px rgba(92, 228, 19, 0.2);
  }

  body.home-page .menu-toggle[aria-expanded="true"] {
    background: var(--home-accent);
    color: var(--home-dark);

    box-shadow:
      0 10px 26px rgba(92, 228, 19, 0.3),
      0 0 20px rgba(92, 228, 19, 0.22);
  }
}

body.home-page .nav a {
  position: relative;
}

body.home-page .nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--home-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

body.home-page .nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* =========================================================
   HERO
   ========================================================= */

body.home-page .home-hero {
  --pointer-x: 50%;
  --pointer-y: 50%;

  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 84px);
  padding: 90px 0 110px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at var(--pointer-x) var(--pointer-y),
      rgba(92, 228, 19, 0.17),
      transparent 26%
    ),
    radial-gradient(
      circle at 12% 20%,
      rgba(92, 228, 19, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 78%,
      rgba(37, 75, 16, 0.16),
      transparent 27%
    ),
    linear-gradient(135deg, #e9f1cb 0%, #fafff2 48%, #ffffff 100%);
}

body.home-page .home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.36;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 59, 3, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 59, 3, 0.07) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, #000 25%, transparent 94%);
}

body.home-page .home-hero::after {
  content: var(--i18n-home-hero-route, "IDEEST MÕJUNI");
  position: absolute;
  z-index: -1;
  right: -35px;
  bottom: -25px;
  color: rgba(14, 59, 3, 0.035);
  font-family: "Arial Black", Inter, Arial, sans-serif;
  font-size: clamp(90px, 15vw, 240px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.07em;
  white-space: nowrap;
  pointer-events: none;
}

body.home-page .home-hero-grid-pattern {
  position: absolute;
  z-index: -1;
  top: 10%;
  left: -80px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(14, 59, 3, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(14, 59, 3, 0.025),
    0 0 0 70px rgba(14, 59, 3, 0.02);
  animation: homeRingPulse 7s ease-in-out infinite;
}

body.home-page .home-hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

body.home-page .home-hero-glow-one {
  top: 5%;
  right: 8%;
  width: 180px;
  height: 180px;
  background: rgba(92, 228, 19, 0.21);
  animation: homeFloat 8s ease-in-out infinite;
}

body.home-page .home-hero-glow-two {
  bottom: 4%;
  left: 32%;
  width: 120px;
  height: 120px;
  background: rgba(37, 75, 16, 0.15);
  animation: homeFloat 10s ease-in-out infinite reverse;
}

body.home-page .home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
  gap: 68px;
  align-items: center;
}

body.home-page .home-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 720px;
}

body.home-page .home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 27px;
  padding: 10px 16px;
  border: 1px solid rgba(14, 59, 3, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--home-green);
  box-shadow: 0 10px 30px rgba(14, 59, 3, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.19em;
}

body.home-page .home-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--home-accent);
  box-shadow: 0 0 0 7px rgba(92, 228, 19, 0.16);
  animation: homeDotPulse 2.2s ease-in-out infinite;
}

body.home-page .home-hero h1 {
  max-width: 760px;
  margin: 0 0 25px;
  color: var(--home-dark);
  font-size: clamp(52px, 5.7vw, 84px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

body.home-page .home-hero h1 span {
  position: relative;
  display: inline;
  color: var(--home-dark);
  background:
    linear-gradient(
      180deg,
      transparent 65%,
      rgba(92, 228, 19, 0.42) 65%
    );
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

body.home-page .home-hero-copy > p {
  max-width: 680px;
  margin: 0;
  color: var(--home-text-soft);
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.55;
}

body.home-page .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 35px;
}

body.home-page .home-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 56px;
  padding: 15px 24px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

body.home-page .home-button::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -35%;
  width: 32%;
  height: 330%;
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(24deg);
  transition: left 0.55s ease;
}

body.home-page .home-button:hover::before {
  left: 115%;
}

body.home-page .home-button:hover {
  transform: translateY(-4px);
}

body.home-page .home-button-primary {
  background: var(--home-dark);
  color: var(--home-white);
  box-shadow: 0 16px 35px rgba(14, 59, 3, 0.22);
}

body.home-page .home-button-primary:hover {
  background: var(--home-green);
  color: var(--home-white);
  box-shadow: 0 21px 45px rgba(14, 59, 3, 0.28);
}

body.home-page .home-button-primary span {
  font-size: 21px;
  transition: transform 0.25s ease;
}

body.home-page .home-button-primary:hover span {
  transform: translateX(4px);
}

body.home-page .home-button-secondary {
  border-color: rgba(14, 59, 3, 0.22);
  background: rgba(255, 255, 255, 0.56);
  color: var(--home-dark);
  backdrop-filter: blur(8px);
}

body.home-page .home-button-secondary:hover {
  border-color: var(--home-green);
  background: var(--home-white);
  color: var(--home-dark);
}

body.home-page .home-hero-path {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  align-items: center;
  color: rgba(14, 59, 3, 0.56);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.home-page .home-hero-path span {
  color: var(--home-dark);
}

body.home-page .home-hero-path i {
  color: var(--home-accent);
  font-style: normal;
  font-size: 18px;
}


/* Hero visual */

body.home-page .home-hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

body.home-page .home-orbit {
  position: relative;
  width: min(510px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

body.home-page .home-orbit-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.home-page .home-orbit-art::before,
body.home-page .home-orbit-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

body.home-page .home-orbit-art::before {
  inset: 9%;
  border: 1px dashed rgba(14, 59, 3, 0.24);
  animation: homeRotate 28s linear infinite;
}

body.home-page .home-orbit-art::after {
  inset: 1%;
  border: 1px solid rgba(14, 59, 3, 0.1);
  box-shadow:
    inset 0 0 70px rgba(92, 228, 19, 0.08),
    0 0 70px rgba(14, 59, 3, 0.06);
}

body.home-page .home-orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

body.home-page .home-orbit-ring-one {
  inset: 18%;
  border: 2px solid rgba(92, 228, 19, 0.34);
  animation: homeRingPulse 5.5s ease-in-out infinite;
}

body.home-page .home-orbit-ring-two {
  inset: 29%;
  border: 1px solid rgba(14, 59, 3, 0.18);
  animation: homeRingPulse 5.5s 1.3s ease-in-out infinite reverse;
}

body.home-page .home-logo-stage {
  position: relative;
  z-index: 2;
  width: 310px;
  min-height: 355px;
  padding: 32px 27px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(14, 59, 3, 0.14);
  border-radius: 38px;
  background:
    radial-gradient(circle at top right, rgba(92, 228, 19, 0.26), transparent 35%),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 35px 85px rgba(14, 59, 3, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  backdrop-filter: blur(16px);
  animation: homeStageFloat 6s ease-in-out infinite;
}

body.home-page .home-logo-stage::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--home-accent);
  opacity: 0.15;
  filter: blur(2px);
}

body.home-page .home-logo-stage-label {
  position: absolute;
  top: 20px;
  left: 22px;
  color: var(--home-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

body.home-page .home-hero-logo {
  width: 165px;
  height: 100px;
  margin: 0;
  object-fit: contain;
}

body.home-page .home-organization-name {
  color: var(--home-dark);
  font-size: 22px;
  line-height: 1.15;
}

body.home-page .home-value-panels {
  width: 100%;
  min-height: 94px;
  margin-top: 12px;
}

body.home-page .home-value-panel[hidden] {
  display: none;
}

body.home-page .home-value-panel:not([hidden]) {
  animation: homeValuePanelIn 0.28s ease both;
}

body.home-page .home-value-panel:focus-visible {
  outline: 3px solid rgba(92, 228, 19, 0.72);
  outline-offset: 5px;
  border-radius: 8px;
}

body.home-page .home-value-panel-title {
  display: block;
  color: var(--home-green);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

body.home-page .home-value-panel p {
  max-width: 235px;
  margin: 7px auto 0;
  color: var(--home-text-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

/* =========================================================
   HERO LOGO — KLIKITAV ORGANISATSIOONI PROFIIL
   ========================================================= */

body.home-page .home-logo-stage-clickable {
  position: relative;
  display: block;
  margin: 0 auto 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

body.home-page .home-logo-stage-clickable:focus-visible {
  outline: 4px solid rgba(92, 228, 19, 0.58);
  outline-offset: 5px;
  border-radius: 12px;
}

body.home-page .home-hero-logo {
  transition:
    transform 0.42s cubic-bezier(0.18, 0.8, 0.2, 1),
    filter 0.35s ease;
}

body.home-page .home-logo-stage-clickable:hover .home-hero-logo,
body.home-page .home-logo-stage-clickable:focus-visible .home-hero-logo {
  filter:
    drop-shadow(0 18px 30px rgba(14, 59, 3, 0.18));

  transform:
    scale(1.075)
    rotate(-1deg);
}

body.home-page .home-logo-open-icon {
  position: absolute;
  top: -5px;
  right: -14px;
  z-index: 6;

  display: grid;
  width: 34px;
  height: 34px;

  place-items: center;

  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      var(--home-dark),
      var(--home-green)
    );

  color: var(--home-accent);

  box-shadow:
    0 10px 26px rgba(14, 59, 3, 0.28),
    0 0 0 6px rgba(92, 228, 19, 0.08);

  font-size: 21px;
  font-weight: 900;
  line-height: 1;

  opacity: 0;

  transform:
    scale(0.65)
    rotate(-30deg);

  transition:
    opacity 0.26s ease,
    transform 0.38s cubic-bezier(0.18, 0.8, 0.2, 1);
}

body.home-page .home-logo-stage-clickable:hover .home-logo-open-icon,
body.home-page .home-logo-stage-clickable:focus-visible .home-logo-open-icon {
  opacity: 1;

  transform:
    scale(1)
    rotate(0deg);
}

/* Organisatsiooni logo erirežiim samas lightbox'is */

body.home-page .photo-modal.is-logo .photo-modal-visual {
  min-height: clamp(300px, 49vh, 500px);

  background:
    radial-gradient(
      circle at 82% 14%,
      rgba(92, 228, 19, 0.2),
      transparent 29%
    ),
    linear-gradient(
      135deg,
      #ffffff,
      #f2fadd
    );
}

body.home-page .photo-modal.is-logo .photo-modal-image {
  width: min(92%, 560px);
  max-width: 560px;
  max-height: min(34vh, 310px);

  object-fit: contain;
  border-radius: 0;

  filter:
    drop-shadow(0 26px 38px rgba(14, 59, 3, 0.2));
}

body.home-page .photo-modal.is-logo .photo-modal-role {
  color: var(--home-accent);
}

@media (max-width: 680px) {
  body.home-page .home-logo-open-icon {
    opacity: 1;

    transform:
      scale(0.9)
      rotate(0deg);
  }

  body.home-page .photo-modal.is-logo .photo-modal-visual {
    min-height: min(43vh, 360px);
  }

  body.home-page .photo-modal.is-logo .photo-modal-image {
    max-height: 25vh;
  }
}


body.home-page .home-value-tabs {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

body.home-page .home-floating-badge {
  position: absolute;
  z-index: 4;
  display: flex;
  max-width: 195px;
  padding: 13px 16px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(14, 59, 3, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--home-dark);
  box-shadow: 0 15px 35px rgba(14, 59, 3, 0.13);
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  line-height: 1.35;
  text-align: left;
  backdrop-filter: blur(12px);
  appearance: none;
  cursor: pointer;
  pointer-events: auto;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

body.home-page .home-floating-badge > span:first-child {
  flex: 0 0 auto;
  color: var(--home-green);
  font-size: 11px;
  font-weight: 900;
}

body.home-page .home-floating-badge:hover {
  border-color: rgba(92, 228, 19, 0.72);
  box-shadow: 0 18px 40px rgba(14, 59, 3, 0.18);
}

body.home-page .home-floating-badge[aria-selected="true"] {
  border-color: rgba(92, 228, 19, 0.88);
  background: linear-gradient(135deg, var(--home-dark), var(--home-green));
  color: #ffffff;
  box-shadow:
    0 18px 42px rgba(14, 59, 3, 0.24),
    0 0 0 5px rgba(92, 228, 19, 0.12);
}

body.home-page .home-floating-badge[aria-selected="true"] > span:first-child {
  color: var(--home-accent);
}

body.home-page .home-floating-badge:focus-visible {
  outline: 3px solid var(--home-accent);
  outline-offset: 4px;
}

body.home-page .home-floating-badge-one {
  top: 7%;
  left: 0;
  animation: homeBadgeFloat 6.5s ease-in-out infinite;
}

body.home-page .home-floating-badge-two {
  top: 43%;
  right: -3%;
  animation: homeBadgeFloat 7s 0.7s ease-in-out infinite reverse;
}

body.home-page .home-floating-badge-three {
  bottom: 5%;
  left: 6%;
  animation: homeBadgeFloat 7.8s 1.1s ease-in-out infinite;
}

body.home-page .home-scroll-cue {
  position: absolute;
  right: 34px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(14, 59, 3, 0.54);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transform: rotate(90deg);
  transform-origin: right bottom;
}

body.home-page .home-scroll-cue i {
  position: relative;
  width: 58px;
  height: 1px;
  overflow: hidden;
  background: rgba(14, 59, 3, 0.24);
}

body.home-page .home-scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--home-green);
  transform: translateX(-100%);
  animation: homeScrollLine 2.1s ease-in-out infinite;
}


/* =========================================================
   ÜLDISED AVALEHE SEKTSIOONID
   ========================================================= */

body.home-page .home-section {
  position: relative;
  padding: 105px 0;
}

body.home-page .home-section-heading {
  max-width: 820px;
  margin-bottom: 45px;
}

body.home-page .home-section-heading-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  gap: 70px;
  align-items: end;
}

body.home-page .home-section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--home-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.home-page .home-section-label::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--home-accent);
}

body.home-page .home-section-heading h2,
body.home-page .home-contact-panel h2 {
  max-width: 850px;
  margin: 0;
  color: var(--home-dark);
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

body.home-page .home-section-heading > p,
body.home-page .home-section-heading-split > p {
  margin: 18px 0 0;
  color: var(--home-text-soft);
  font-size: 18px;
  line-height: 1.75;
}

body.home-page .home-section-heading-split > p {
  margin: 0;
}


/* =========================================================
   ABOUT / VÄÄRTUSED
   ========================================================= */

body.home-page .home-about {
  background:
    radial-gradient(circle at 90% 15%, rgba(92, 228, 19, 0.12), transparent 24%),
    var(--home-bg);
}

body.home-page .home-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

body.home-page .home-value-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 35px;
  border: 1px solid var(--home-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(14, 59, 3, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

body.home-page .home-value-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--home-accent), var(--home-green));
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.35s ease;
}

body.home-page .home-value-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(92, 228, 19, 0.09);
  transition: transform 0.45s ease;
}

body.home-page .home-value-card:hover {
  transform: translateY(-10px);
  border-color: rgba(92, 228, 19, 0.48);
  box-shadow: 0 30px 70px rgba(14, 59, 3, 0.14);
}

body.home-page .home-value-card:hover::before {
  transform: scaleX(1);
}

body.home-page .home-value-card:hover::after {
  transform: scale(1.22);
}

body.home-page .home-value-card-featured {
  background:
    radial-gradient(circle at top right, rgba(92, 228, 19, 0.18), transparent 35%),
    var(--home-dark);
  color: var(--home-white);
  transform: translateY(-18px);
  box-shadow: var(--home-shadow-strong);
}

body.home-page .home-value-card-featured:hover {
  transform: translateY(-28px);
}

body.home-page .home-value-card-featured::after {
  background: rgba(255, 255, 255, 0.05);
}

body.home-page .home-value-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 55px;
  place-items: center;
  border-radius: 18px;
  background: var(--home-accent);
  color: var(--home-dark);
  box-shadow: 0 12px 28px rgba(92, 228, 19, 0.25);
  font-size: 28px;
  font-weight: 900;
  transition: transform 0.35s ease;
}

body.home-page .home-value-card:hover .home-value-icon {
  transform: rotate(-8deg) scale(1.08);
}

body.home-page .home-value-number {
  position: absolute;
  top: 28px;
  right: 30px;
  color: rgba(14, 59, 3, 0.16);
  font-family: "Arial Black", Inter, Arial, sans-serif;
  font-size: 46px;
  font-weight: 900;
}

body.home-page .home-value-card-featured .home-value-number {
  color: rgba(255, 255, 255, 0.13);
}

body.home-page .home-value-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--home-dark);
  font-size: 29px;
}

body.home-page .home-value-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--home-text-soft);
  font-size: 16px;
  line-height: 1.75;
}

body.home-page .home-value-card-featured h3 {
  color: var(--home-white);
}

body.home-page .home-value-card-featured p {
  color: rgba(255, 255, 255, 0.76);
}


/* =========================================================
   LIIKUV TEKST
   ========================================================= */

body.home-page .home-marquee {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 20% 50%, rgba(92, 228, 19, 0.15), transparent 22%),
    linear-gradient(90deg, var(--home-dark), var(--home-green));
  color: var(--home-white);
}

body.home-page .home-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  animation: homeMarquee 28s linear infinite;
}

body.home-page .home-marquee-track span {
  font-family: "Arial Black", Inter, Arial, sans-serif;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

body.home-page .home-marquee-track i {
  color: var(--home-accent);
  font-style: normal;
  font-size: 22px;
}


/* =========================================================
   TEAM
   ========================================================= */

body.home-page .home-team-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(92, 228, 19, 0.11), transparent 24%),
    linear-gradient(180deg, #f9fff2 0%, var(--home-bg) 100%);
}

body.home-page .home-team-group + .home-team-group {
  margin-top: 75px;
}

body.home-page .home-team-group-heading {
  display: flex;
  margin-bottom: 25px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

body.home-page .home-team-group-heading span {
  color: var(--home-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

body.home-page .home-team-group-heading h3 {
  margin: 0;
  color: var(--home-dark);
  font-size: clamp(24px, 3vw, 34px);
}

body.home-page .home-team-group-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(14, 59, 3, 0.22), transparent);
}

body.home-page .home-leadership-grid,
body.home-page .home-team-grid {
  display: grid;
  gap: 22px;
}

body.home-page .home-leadership-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.home-page .home-team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.home-page .home-person-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  --card-lift: 0px;

  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 26px;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 25px;
  align-items: center;
  border: 1px solid rgba(14, 59, 3, 0.13);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at var(--shine-x) var(--shine-y),
      rgba(92, 228, 19, 0.12),
      transparent 34%
    ),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 45px rgba(14, 59, 3, 0.08);
  transform:
    perspective(1000px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(var(--card-lift));
  transform-style: preserve-3d;
  transition:
    transform 0.22s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

body.home-page .home-person-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 130px;
  height: 130px;
  border: 22px solid rgba(92, 228, 19, 0.1);
  border-radius: 50%;
}

body.home-page .home-person-card:hover {
  --card-lift: -8px;
  border-color: rgba(92, 228, 19, 0.5);
  box-shadow: 0 30px 70px rgba(14, 59, 3, 0.14);
}

body.home-page .home-person-card-lead {
  min-height: 280px;
  grid-template-columns: 145px minmax(0, 1fr);
  background:
    radial-gradient(
      circle at var(--shine-x) var(--shine-y),
      rgba(92, 228, 19, 0.16),
      transparent 34%
    ),
    linear-gradient(145deg, var(--home-dark), var(--home-green));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 65px rgba(14, 59, 3, 0.22);
}

body.home-page .home-person-photo-wrap {
  position: relative;
  z-index: 1;
}

body.home-page .home-person-card .team-photo {
  width: 110px;
  height: 130px;
  border: 4px solid var(--home-white);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 18px 35px rgba(14, 59, 3, 0.2);
  transition: transform 0.35s ease;
}

body.home-page .home-person-card-lead .team-photo {
  width: 138px;
  height: 165px;
  object-fit: cover;

  opacity: 0;
  transition: opacity 0.35s ease;
}

body.home-page .home-person-card-lead .team-photo.loaded {
  opacity: 1;
}

.team-photo {
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

/* Väike suurendamise märk foto kohal */

body.home-page .home-person-photo-wrap::after {
  content: "+";

  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;

  display: grid;
  width: 30px;
  height: 30px;

  place-items: center;

  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      var(--home-dark),
      var(--home-green)
    );

  color: var(--home-accent);

  box-shadow:
    0 9px 24px rgba(14, 59, 3, 0.3),
    0 0 0 5px rgba(92, 228, 19, 0.08);

  font-size: 19px;
  font-weight: 900;
  line-height: 1;

  opacity: 0;
  pointer-events: none;

  transform:
    scale(0.62)
    rotate(-28deg);

  transition:
    opacity 0.25s ease,
    transform 0.35s cubic-bezier(0.18, 0.8, 0.2, 1);
}

body.home-page .home-person-photo-wrap:hover::after,
body.home-page .home-person-photo-wrap:focus-within::after {
  opacity: 1;

  transform:
    scale(1)
    rotate(0deg);
}

/* Kui profiiliaken on avatud, ei kerita tausta */

body.home-page.photo-modal-open {
  overflow: hidden;
}

/* Täisekraani taust */

body.home-page .photo-modal {
  position: fixed;
  inset: 0;
  z-index: 30000;

  display: grid;
  padding: 28px;

  place-items: center;
  overflow-y: auto;

  background:
    radial-gradient(
      circle at 14% 14%,
      rgba(92, 228, 19, 0.18),
      transparent 31%
    ),
    radial-gradient(
      circle at 86% 84%,
      rgba(255, 255, 255, 0.09),
      transparent 29%
    ),
    rgba(5, 26, 2, 0.91);

  opacity: 0;
  visibility: hidden;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  transition:
    opacity 0.34s ease,
    visibility 0.34s ease;
}

body.home-page .photo-modal[hidden] {
  display: none;
}

body.home-page .photo-modal.open {
  opacity: 1;
  visibility: visible;
}

/* Hõljuv dekoratiivne valgusring */

body.home-page .photo-modal::before {
  content: "";

  position: fixed;
  top: 50%;
  left: 50%;
  z-index: -1;

  width: min(760px, 82vw);
  aspect-ratio: 1;

  border-radius: 50%;

  background:
    conic-gradient(
      from 0deg,
      rgba(92, 228, 19, 0.16),
      rgba(255, 255, 255, 0.025),
      rgba(37, 75, 16, 0.18),
      rgba(92, 228, 19, 0.16)
    );

  filter: blur(50px);

  transform: translate(-50%, -50%);

  animation:
    homeProfileModalGlow 13s linear infinite;
}

/* Põhikaart */

body.home-page .photo-modal-card {
  position: relative;
  isolation: isolate;

  width: min(780px, 94vw);
  max-height: calc(100vh - 56px);
  padding: 30px;

  overflow-y: auto;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 38px;

  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(92, 228, 19, 0.18),
      transparent 31%
    ),
    linear-gradient(
      145deg,
      rgba(14, 59, 3, 0.985),
      rgba(37, 75, 16, 0.985)
    );

  box-shadow:
    0 48px 140px rgba(0, 0, 0, 0.58),
    0 0 0 12px rgba(92, 228, 19, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);

  opacity: 0;

  transform:
    translateY(34px)
    scale(0.88)
    rotateX(8deg);

  transform-origin: center;

  transition:
    opacity 0.35s ease,
    transform 0.58s cubic-bezier(0.18, 0.8, 0.2, 1);
}

body.home-page .photo-modal.open .photo-modal-card {
  opacity: 1;

  transform:
    translateY(0)
    scale(1)
    rotateX(0deg);
}

body.home-page .photo-modal-card::before {
  content: "";

  position: absolute;
  inset: 15px;
  z-index: -1;

  border: 1px dashed rgba(92, 228, 19, 0.24);
  border-radius: 29px;

  pointer-events: none;

  animation:
    homeProfileModalBorder 3.6s ease-in-out infinite;
}

/* Fotoala */

body.home-page .photo-modal-visual {
  position: relative;

  display: grid;
  min-height: clamp(340px, 56vh, 570px);
  padding: clamp(26px, 5vw, 58px);

  place-items: center;
  overflow: hidden;

  border: 1px solid rgba(14, 59, 3, 0.12);
  border-radius: 28px;

  background:
    radial-gradient(
      circle at 87% 10%,
      rgba(92, 228, 19, 0.16),
      transparent 27%
    ),
    linear-gradient(
      135deg,
      #ffffff,
      #f3fadd
    );

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    inset 0 -30px 80px rgba(92, 228, 19, 0.08),
    0 26px 72px rgba(0, 0, 0, 0.25);
}

body.home-page .photo-modal-visual::before,
body.home-page .photo-modal-visual::after {
  content: "";

  position: absolute;

  border-radius: 50%;
  pointer-events: none;
}

body.home-page .photo-modal-visual::before {
  top: -115px;
  right: -100px;

  width: 290px;
  height: 290px;

  border: 48px solid rgba(92, 228, 19, 0.1);

  animation:
    homeProfileModalRing 14s linear infinite;
}

body.home-page .photo-modal-visual::after {
  bottom: -120px;
  left: -90px;

  width: 270px;
  height: 270px;

  border: 40px solid rgba(37, 75, 16, 0.07);

  animation:
    homeProfileModalRing 18s linear infinite reverse;
}

body.home-page .photo-modal-kicker {
  position: absolute;
  top: 22px;
  left: 25px;
  z-index: 3;

  padding: 8px 12px;

  border: 1px solid rgba(14, 59, 3, 0.14);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.76);
  color: var(--home-green);

  box-shadow:
    0 10px 28px rgba(14, 59, 3, 0.09);

  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;

  backdrop-filter: blur(10px);
}

/* Suur foto */

body.home-page .photo-modal-image {
  position: relative;
  z-index: 2;

  display: block;

  width: auto;
  max-width: min(100%, 560px);
  height: auto;
  max-height: min(51vh, 500px);

  object-fit: contain;
  border-radius: 24px;

  opacity: 0;

  filter:
    drop-shadow(0 28px 42px rgba(14, 59, 3, 0.2));

  transform:
    scale(0.76)
    translateY(18px)
    rotate(-3deg);

  transition:
    opacity 0.38s ease 0.08s,
    transform 0.66s
      cubic-bezier(0.18, 0.8, 0.2, 1)
      0.04s;
}

body.home-page .photo-modal.open .photo-modal-image {
  opacity: 1;

  transform:
    scale(1)
    translateY(0)
    rotate(0deg);
}

/* Nimi, roll ja kirjeldus foto all */

body.home-page .photo-modal-info {
  position: relative;
  z-index: 2;

  display: flex;
  padding: 27px 16px 5px;

  flex-direction: column;
  align-items: center;

  color: var(--home-white);
  text-align: center;
}

body.home-page .photo-modal-role {
  margin: 0 0 9px;

  color: var(--home-accent);

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

body.home-page .photo-modal-info h2 {
  margin: 0;

  color: var(--home-white);

  font-size: clamp(28px, 5vw, 45px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

body.home-page .photo-modal-description {
  max-width: 620px;
  margin: 15px 0 0;

  color: rgba(255, 255, 255, 0.74);

  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.7;
}

body.home-page .photo-modal-hint {
  margin-top: 17px;

  color: rgba(255, 255, 255, 0.42);

  font-size: 10px;
  line-height: 1.45;
}

/* Sulgemisnupp */

body.home-page .photo-modal-close {
  position: fixed;
  top: 23px;
  right: 25px;
  z-index: 5;

  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;

  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.31);
  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.15),
      rgba(92, 228, 19, 0.09)
    );

  color: var(--home-white);

  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.35);

  font-family: inherit;
  font-size: 39px;
  line-height: 1;

  cursor: pointer;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    transform 0.28s ease,
    background 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease;
}

body.home-page .photo-modal-close span {
  display: block;
  transform: translateY(-2px);
}

body.home-page .photo-modal-close:hover,
body.home-page .photo-modal-close:focus-visible {
  border-color: var(--home-accent);

  background: var(--home-accent);
  color: var(--home-dark);

  outline: none;

  transform:
    rotate(90deg)
    scale(1.06);
}

@keyframes homeProfileModalGlow {
  to {
    transform:
      translate(-50%, -50%)
      rotate(360deg);
  }
}

@keyframes homeProfileModalBorder {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.9;
  }
}

@keyframes homeProfileModalRing {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 680px) {
  body.home-page .photo-modal {
    padding: 15px;
  }

  body.home-page .photo-modal-card {
    width: min(100%, 540px);
    max-height: calc(100vh - 30px);
    padding: 17px;
    border-radius: 27px;
  }

  body.home-page .photo-modal-card::before {
    inset: 8px;
    border-radius: 21px;
  }

  body.home-page .photo-modal-visual {
    min-height: min(52vh, 430px);
    padding: 50px 20px 24px;
    border-radius: 20px;
  }

  body.home-page .photo-modal-image {
    max-height: 43vh;
    border-radius: 18px;
  }

  body.home-page .photo-modal-info {
    padding: 22px 8px 3px;
  }

  body.home-page .photo-modal-info h2 {
    font-size: clamp(27px, 8vw, 37px);
  }

  body.home-page .photo-modal-description {
    font-size: 14px;
  }

  body.home-page .photo-modal-close {
    top: 11px;
    right: 11px;

    width: 50px;
    height: 50px;

    font-size: 34px;
  }

  body.home-page .home-person-photo-wrap::after {
    opacity: 1;

    transform:
      scale(0.9)
      rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .photo-modal::before,
  body.home-page .photo-modal-card::before,
  body.home-page .photo-modal-visual::before,
  body.home-page .photo-modal-visual::after {
    animation: none !important;
  }

  body.home-page .photo-modal,
  body.home-page .photo-modal-card,
  body.home-page .photo-modal-image,
  body.home-page .photo-modal-close,
  body.home-page .home-person-photo-wrap::after {
    transition: none !important;
  }
}

body.home-page .home-person-card:hover .team-photo {
  transform: scale(1.035) rotate(-1deg);
}

body.home-page .home-person-photo-wrap > span {
  position: absolute;
  right: -8px;
  bottom: -10px;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 3px solid var(--home-white);
  border-radius: 14px;
  background: var(--home-accent);
  color: var(--home-dark);
  font-size: 11px;
  font-weight: 900;
}

body.home-page .home-person-info {
  position: relative;
  z-index: 1;
  min-width: 0;
}

body.home-page .home-person-role {
  margin: 0 0 7px;
  color: var(--home-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.home-page .home-person-info h3 {
  margin: 0 0 12px;
  color: var(--home-dark);
  font-size: 24px;
  line-height: 1.15;
}

body.home-page .home-person-info > p:last-child {
  margin: 0;
  color: var(--home-text-soft);
  font-size: 14px;
  line-height: 1.65;
}

body.home-page .home-person-card-lead .home-person-role {
  color: var(--home-accent);
}

body.home-page .home-person-card-lead .home-person-info h3 {
  color: var(--home-white);
  font-size: 27px;
}

body.home-page .home-person-card-lead .home-person-info > p:last-child {
  color: rgba(255, 255, 255, 0.74);
}


/* =========================================================
   PROJECTS
   ========================================================= */

body.home-page .home-projects-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(92, 228, 19, 0.16), transparent 24%),
    linear-gradient(145deg, var(--home-dark) 0%, #183f0e 100%);
  color: var(--home-white);
}

body.home-page .home-projects-section::before {
  content: "";
  position: absolute;
  top: -180px;
  left: -140px;
  width: 420px;
  height: 420px;
  border: 70px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
}

body.home-page .home-section-heading-light h2 {
  color: var(--home-white);
}

body.home-page .home-section-heading-light > p {
  color: rgba(255, 255, 255, 0.72);
}

body.home-page .home-section-heading-light .home-section-label {
  color: var(--home-accent);
}

body.home-page .home-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body.home-page .home-project-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  --card-lift: 0px;

  position: relative;
  overflow: hidden;
  min-height: 460px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background:
    radial-gradient(
      circle at var(--shine-x) var(--shine-y),
      rgba(92, 228, 19, 0.15),
      transparent 32%
    ),
    rgba(255, 255, 255, 0.11);
  color: var(--home-white);
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  transform:
    perspective(1000px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(var(--card-lift));
  transform-style: preserve-3d;
  transition:
    transform 0.22s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

body.home-page .home-project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.09) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

body.home-page .home-project-card:hover {
  --card-lift: -12px;
  border-color: rgba(92, 228, 19, 0.48);
  background:
    radial-gradient(
      circle at var(--shine-x) var(--shine-y),
      rgba(92, 228, 19, 0.23),
      transparent 35%
    ),
    rgba(255, 255, 255, 0.14);
  color: var(--home-white);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.25);
}

body.home-page .home-project-card:hover::before {
  transform: translateX(120%);
}

body.home-page .home-project-index {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  color: rgba(255, 255, 255, 0.24);
  font-family: "Arial Black", Inter, Arial, sans-serif;
  font-size: 53px;
  font-weight: 900;
  line-height: 1;
}

body.home-page .home-project-orb {
  position: absolute;
  top: 42px;
  left: 32px;
  width: 74px;
  height: 74px;
  border: 16px solid rgba(92, 228, 19, 0.18);
  border-radius: 50%;
  transition: transform 0.45s ease;
}

body.home-page .home-project-card:nth-child(2) .home-project-orb {
  width: 68px;
  height: 68px;
  border-width: 2px;
  box-shadow:
    0 0 0 13px rgba(92, 228, 19, 0.1),
    0 0 0 26px rgba(92, 228, 19, 0.045);
}

body.home-page .home-project-card:nth-child(3) .home-project-orb {
  border-radius: 20px;
  transform: rotate(18deg);
}

body.home-page .home-project-card:hover .home-project-orb {
  transform: rotate(35deg) scale(1.12);
}

body.home-page .home-project-card:nth-child(3):hover .home-project-orb {
  transform: rotate(48deg) scale(1.12);
}

body.home-page .home-project-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-self: flex-start;
  margin-top: 65px;
  margin-bottom: 23px;
  padding: 8px 13px;
  border: 1px solid rgba(92, 228, 19, 0.28);
  border-radius: 999px;
  background: rgba(92, 228, 19, 0.1);
  color: var(--home-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

body.home-page .home-project-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  min-height: 4.32em;
  color: var(--home-white);
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

body.home-page
  .home-project-card
  h3[data-i18n="home.projects.campTitle"] {
  font-size: clamp(28px, 2.55vw, 33px);
}

body.home-page .home-project-card p {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.72;
}

body.home-page .home-project-link {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: auto;
  padding-top: 32px;
  align-items: center;
  justify-content: space-between;
  color: var(--home-white);
  font-size: 14px;
  font-weight: 900;
}

body.home-page .home-project-link i {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 14px;
  background: var(--home-accent);
  color: var(--home-dark);
  font-style: normal;
  font-size: 20px;
  transition: transform 0.3s ease;
}

body.home-page .home-project-card:hover .home-project-link i {
  transform: rotate(45deg);
}



/* =========================================================
   NEWS & ACHIEVEMENTS / UUDISED JA SAAVUTUSED
   Ainult avalehel
   ========================================================= */

body.home-page .home-news-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(92, 228, 19, 0.13),
      transparent 27%
    ),
    radial-gradient(
      circle at 92% 88%,
      rgba(37, 75, 16, 0.11),
      transparent 28%
    ),
    linear-gradient(180deg, #f9fff3 0%, #eef6d7 100%);
}

body.home-page .home-news-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 59, 3, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 59, 3, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  animation: homeNewsGrid 22s linear infinite;
}

body.home-page .home-news-section::after {
  content: var(--i18n-home-news-label, "UUDISED");
  position: absolute;
  right: -35px;
  bottom: -36px;
  z-index: -2;
  color: rgba(14, 59, 3, 0.035);
  font-family: "Arial Black", Inter, Arial, sans-serif;
  font-size: clamp(110px, 19vw, 300px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.07em;
  pointer-events: none;
}

body.home-page .home-news-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(13px);
}

body.home-page .home-news-glow-one {
  top: 7%;
  left: -75px;
  width: 260px;
  height: 260px;
  background: rgba(92, 228, 19, 0.16);
  animation: homeNewsGlowOne 8s ease-in-out infinite;
}

body.home-page .home-news-glow-two {
  right: -90px;
  bottom: 8%;
  width: 330px;
  height: 330px;
  background: rgba(37, 75, 16, 0.12);
  animation: homeNewsGlowTwo 9.5s ease-in-out infinite;
}

body.home-page .home-news-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.78fr);
  gap: clamp(38px, 4.5vw, 62px);
  align-items: center;
  margin-bottom: 31px;
}

body.home-page .home-news-heading h2 {
  max-width: 780px;
  margin: 0;
  color: var(--home-dark);
  font-size: clamp(42px, 5.3vw, 70px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

body.home-page .home-news-heading-side {
  display: grid;
  gap: 22px;
  justify-items: start;
  width: 100%;
  max-width: 560px;
}

body.home-page .home-news-heading-side p {
  margin: 0;
  color: var(--home-text-soft);
  font-size: clamp(18px, 1.55vw, 20px);
  line-height: 1.62;
}

body.home-page .home-news-author {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

body.home-page .home-news-card-small .home-news-author {
  color: var(--home-text-soft);
}

body.home-page .home-news-all {
  display: inline-flex;
  min-height: 49px;
  padding: 12px 17px 12px 20px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(14, 59, 3, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--home-dark);
  box-shadow: 0 12px 28px rgba(14, 59, 3, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

body.home-page .home-news-all i {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--home-dark);
  color: var(--home-white);
  font-style: normal;
  font-size: 16px;
  animation: homeNewsArrow 2.2s ease-in-out infinite;
}

body.home-page .home-news-all-static {
  cursor: default;
}

body.home-page .home-news-filters {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

body.home-page .home-news-filters span {
  display: inline-flex;
  min-height: 42px;
  padding: 10px 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(14, 59, 3, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--home-green);
  font-size: 12px;
  font-weight: 900;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

body.home-page .home-news-filters span:hover,
body.home-page .home-news-filters .is-active {
  border-color: var(--home-dark);
  background: var(--home-dark);
  color: var(--home-white);
  transform: translateY(-2px);
}

body.home-page .home-news-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 21px;
}

body.home-page .home-news-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px;
}

body.home-page .home-news-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  --news-lift: 0px;

  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14, 59, 3, 0.12);
  border-radius: 29px;
  box-shadow: 0 20px 55px rgba(14, 59, 3, 0.1);
  transform:
    perspective(1050px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(var(--news-lift));
  transform-style: preserve-3d;
  transition:
    transform 0.22s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

body.home-page .home-news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--shine-x) var(--shine-y),
      rgba(255, 255, 255, 0.17),
      transparent 28%
    );
  opacity: 0.7;
}

body.home-page .home-news-card:hover {
  --news-lift: -8px;
  border-color: rgba(92, 228, 19, 0.48);
  box-shadow:
    0 31px 75px rgba(14, 59, 3, 0.17),
    0 0 30px rgba(92, 228, 19, 0.09);
}

body.home-page .home-news-card-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  min-height: 0;
  align-items: center;
  background:
    linear-gradient(145deg, #123f08, var(--home-dark));
}

body.home-page .home-news-media {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  flex: 0 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(92, 228, 19, 0.35), transparent 28%),
    radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.08), transparent 25%),
    linear-gradient(145deg, #315e19, #0e3b03);
}

body.home-page .home-news-media::before,
body.home-page .home-news-small-media::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 25px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

body.home-page .home-news-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to top,
      rgba(6, 30, 2, 0.96) 0%,
      rgba(6, 30, 2, 0.52) 47%,
      rgba(6, 30, 2, 0.05) 82%
    );
}

body.home-page .home-news-media img,
body.home-page .home-news-small-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

body.home-page .home-news-media .news-image-primary,
body.home-page .home-news-small-media .news-image-primary {
  z-index: 1;
  object-fit: cover;
  object-position: var(--news-image-position, center center);
  transition: transform 0.55s cubic-bezier(0.18, 0.8, 0.2, 1);
}

body.home-page .home-news-card:hover .news-image-primary {
  transform: scale(1.025);
}

body.home-page .home-news-featured-overlay {
  position: relative;
  z-index: 4;
  display: flex;
  flex: 1;
  padding: 34px;
  flex-direction: column;
  background:
    radial-gradient(circle at 90% 10%, rgba(92, 228, 19, 0.16), transparent 34%),
    linear-gradient(145deg, #123f08, var(--home-dark));
  color: var(--home-white);
  transform: translateZ(30px);
}

body.home-page .home-news-meta {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.home-page .home-news-category {
  display: inline-flex;
  min-height: 31px;
  padding: 7px 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(92, 228, 19, 0.35);
  border-radius: 999px;
  background: rgba(92, 228, 19, 0.17);
  color: var(--home-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

body.home-page .home-news-meta time {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

body.home-page .home-news-card-featured h3 {
  max-width: 690px;
  margin: 0 0 14px;
  color: var(--home-white);
  font-size: clamp(31px, 3.2vw, 46px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.038em;
}

body.home-page .home-news-card-featured p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

body.home-page .home-news-card-link {
  display: flex;
  margin-top: 25px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
}

body.home-page .home-news-card-featured .home-news-card-link {
  margin-top: auto;
  padding-top: 25px;
}

body.home-page .home-news-card-link i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--home-accent);
  color: var(--home-dark);
  font-style: normal;
  font-size: 19px;
  transition: transform 0.3s ease;
}

body.home-page .home-news-card:hover .home-news-card-link i {
  transform: rotate(45deg);
}

body.home-page .home-news-card-small {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

body.home-page .home-news-small-media {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 8 / 5;
  flex: 0 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(92, 228, 19, 0.33), transparent 30%),
    linear-gradient(145deg, #315e19, #123f08);
}

body.home-page .home-news-small-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(
      115deg,
      rgba(14, 59, 3, 0.12),
      transparent 55%
    );
}

body.home-page .home-news-small-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  padding: 27px;
  flex-direction: column;
  transform: translateZ(24px);
}

body.home-page .home-news-card-small .home-news-category {
  border-color: rgba(37, 75, 16, 0.18);
  background: rgba(92, 228, 19, 0.12);
  color: var(--home-green);
}

body.home-page .home-news-card-small .home-news-meta {
  margin-bottom: 14px;
}

body.home-page .home-news-card-small .home-news-meta time {
  color: rgba(14, 59, 3, 0.48);
}

body.home-page .home-news-card-small h3 {
  margin: 0 0 10px;
  color: var(--home-dark);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.026em;
}

body.home-page .home-news-card-small p {
  margin: 0;
  color: var(--home-text-soft);
  font-size: 14px;
  line-height: 1.62;
}

body.home-page .home-news-card-small .home-news-card-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--home-green);
}

body.home-page .home-news-card-small .home-news-card-link i {
  width: 37px;
  height: 37px;
  border-radius: 12px;
}

body.home-page .home-news-note {
  position: relative;
  z-index: 2;
  display: flex;
  margin-top: 24px;
  padding: 17px 20px;
  align-items: center;
  gap: 13px;
  border: 1px dashed rgba(14, 59, 3, 0.19);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--home-text-soft);
  backdrop-filter: blur(8px);
}

body.home-page .home-news-note > span {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--home-accent);
  color: var(--home-dark);
  animation: homeNewsNotePulse 2.6s ease-in-out infinite;
}

body.home-page .home-news-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

body.home-page .home-news-note strong {
  color: var(--home-dark);
}

/* News animations */

@keyframes homeNewsGrid {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 72px 72px, 72px 72px;
  }
}

@keyframes homeNewsGlowOne {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(35px, 26px) scale(1.14);
  }
}

@keyframes homeNewsGlowTwo {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, -23px) scale(1.12);
  }
}

@keyframes homeNewsArrow {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(4px);
  }
}

@keyframes homeNewsNotePulse {
  0%,
  100% {
    transform: rotate(-4deg) scale(1);
  }

  50% {
    transform: rotate(5deg) scale(1.06);
  }
}

/* News responsive */

@media (max-width: 1050px) {
  body.home-page .home-news-heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  body.home-page .home-news-heading-side {
    max-width: 720px;
  }

  body.home-page .home-news-layout {
    grid-template-columns: 1fr;
  }

  body.home-page .home-news-card-featured {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  body.home-page .home-news-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-page .home-news-card-small {
    min-height: 100%;
  }

  body.home-page .home-news-small-media {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  body.home-page .home-news-heading h2 {
    font-size: 40px;
  }

  body.home-page .home-news-side {
    grid-template-columns: 1fr;
  }

  body.home-page .home-news-card-featured {
    min-height: 0;
  }

  body.home-page .home-news-featured-overlay {
    padding: 27px;
  }

  body.home-page .home-news-card-featured h3 {
    font-size: 33px;
  }

  body.home-page .home-news-card-featured p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  body.home-page .home-news-card-small {
    min-height: auto;
  }

  body.home-page .home-news-small-media {
    min-height: 0;
  }

  body.home-page .home-news-note {
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  body.home-page .home-news-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-page .home-news-filters span {
    width: 100%;
  }

  body.home-page .home-news-card-featured {
    min-height: 0;
  }

  body.home-page .home-news-featured-overlay {
    padding: 23px;
  }

  body.home-page .home-news-card-featured h3 {
    font-size: 29px;
  }

  body.home-page .home-news-card-featured p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.home-page .home-news-small-media {
    min-height: 0;
  }

  body.home-page .home-news-small-content {
    padding: 23px;
  }

  body.home-page .home-news-card-small h3 {
    font-size: 22px;
  }
}

/* =========================================================
   CONTACT
   ========================================================= */

body.home-page .home-contact-section {
  background:
    radial-gradient(circle at 12% 85%, rgba(92, 228, 19, 0.17), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, var(--home-bg) 100%);
}

body.home-page .home-contact-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: stretch;
}

body.home-page .home-contact-panel,
body.home-page .home-contact-card {
  border-radius: 34px;
}

body.home-page .home-contact-panel {
  position: relative;
  overflow: hidden;
  padding: 46px;
  background:
    radial-gradient(circle at right top, rgba(92, 228, 19, 0.2), transparent 34%),
    linear-gradient(145deg, var(--home-dark), var(--home-green));
  color: var(--home-white);
  box-shadow: var(--home-shadow-strong);
}

body.home-page .home-contact-panel .home-section-label {
  color: var(--home-accent);
}

body.home-page .home-contact-panel h2 {
  color: var(--home-white);
  font-size: clamp(38px, 4.3vw, 59px);
}

body.home-page .home-contact-panel > p {
  max-width: 530px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 17px;
  line-height: 1.72;
}

body.home-page .home-contact-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 13px;
  margin-top: 42px;
}

body.home-page .home-contact-list > a,
body.home-page .home-contact-list > div {
  display: flex;
  padding: 16px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--home-white);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

body.home-page .home-contact-list > a:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.12);
  color: var(--home-white);
}

body.home-page .home-contact-list > a > span,
body.home-page .home-contact-list > div > span {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--home-accent);
  color: var(--home-dark);
  font-size: 19px;
}

body.home-page .home-contact-list small,
body.home-page .home-contact-list strong {
  display: block;
}

body.home-page .home-contact-list small {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.home-page .home-contact-list strong {
  color: var(--home-white);
  font-size: 14px;
  overflow-wrap: anywhere;
}

body.home-page .home-contact-decoration {
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 190px;
  height: 190px;
}

body.home-page .home-contact-decoration span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

body.home-page .home-contact-decoration span:nth-child(1) {
  inset: 0;
}

body.home-page .home-contact-decoration span:nth-child(2) {
  inset: 28px;
}

body.home-page .home-contact-decoration span:nth-child(3) {
  inset: 58px;
  background: rgba(92, 228, 19, 0.08);
}

body.home-page .home-contact-card {
  padding: 46px;
  border: 1px solid var(--home-border);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--home-shadow);
  backdrop-filter: blur(12px);
}

body.home-page .home-contact-card-heading {
  margin-bottom: 30px;
}

body.home-page .home-contact-card-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--home-green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

body.home-page .home-contact-card-heading h3 {
  margin: 0;
  color: var(--home-dark);
  font-size: 28px;
}

body.home-page .home-contact-form {
  display: grid;
  gap: 20px;
}

body.home-page .home-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

body.home-page .home-contact-form label {
  color: var(--home-dark);
  font-size: 13px;
  font-weight: 800;
}

body.home-page .home-contact-form input,
body.home-page .home-contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 15px 16px;
  border: 1px solid rgba(14, 59, 3, 0.14);
  border-radius: 14px;
  outline: none;
  background: rgba(233, 241, 203, 0.28);
  color: var(--home-dark);
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

body.home-page .home-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

body.home-page .home-contact-form input:focus,
body.home-page .home-contact-form textarea:focus {
  border-color: var(--home-accent);
  background: var(--home-white);
  box-shadow: 0 0 0 4px rgba(92, 228, 19, 0.17);
}

body.home-page .home-contact-submit {
  display: flex;
  min-height: 56px;
  padding: 15px 20px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 15px;
  background: var(--home-dark);
  color: var(--home-white);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

body.home-page .home-contact-submit:hover {
  transform: translateY(-3px);
  background: var(--home-green);
  box-shadow: 0 16px 35px rgba(14, 59, 3, 0.2);
}

body.home-page .home-contact-submit span {
  font-size: 20px;
}


/* =========================================================
   INFOKIRI — ainult avalehe väike täiendus
   ========================================================= */

body.home-page .newsletter-section {
  position: relative;
  overflow: hidden;
}

body.home-page .newsletter-section::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 4%;
  width: 120px;
  height: 120px;
  border: 24px solid rgba(92, 228, 19, 0.1);
  border-radius: 50%;
  animation: homeRotate 18s linear infinite;
}

body.home-page .newsletter-content {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

body.home-page .newsletter-content:hover {
  transform: translateY(-7px);
  box-shadow: 0 35px 85px rgba(14, 59, 3, 0.25);
}


/* =========================================================
   SCROLL REVEAL
   ========================================================= */

body.home-page [data-reveal] {
  opacity: 0;
  translate: 0 34px;
  filter: blur(5px);
  transition:
    opacity 0.8s ease var(--reveal-delay, 0ms),
    translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
    filter 0.8s ease var(--reveal-delay, 0ms);
}

body.home-page [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}


/* =========================================================
   ANIMATSIOONID
   ========================================================= */

@keyframes homeFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -20px, 0) scale(1.06);
  }
}

@keyframes homeStageFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-13px) rotate(1deg);
  }
}

@keyframes homeBadgeFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-11px) rotate(1deg);
  }
}

@keyframes homeValuePanelIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes homeRingPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.65;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes homeDotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(92, 228, 19, 0.16);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(92, 228, 19, 0.04);
  }
}

@keyframes homeScrollLine {
  0% {
    transform: translateX(-100%);
  }

  55%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes homeMarquee {
  to {
    transform: translateX(-50%);
  }
}


/* =========================================================
   TAHVEL
   ========================================================= */

@media (max-width: 1080px) {
  body.home-page .home-hero {
    min-height: auto;
    padding: 80px 0 105px;
  }

  body.home-page .home-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 35px;
  }

  body.home-page .home-hero-visual {
    min-height: 490px;
  }

  body.home-page .home-floating-badge-two {
    right: 0;
  }

  body.home-page .home-section-heading-split {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  body.home-page .home-section-heading-split > p {
    max-width: 780px;
  }

  body.home-page .home-project-grid {
    grid-template-columns: 1fr;
  }

  body.home-page .home-project-card {
    min-height: 365px;
  }

  body.home-page .home-project-label {
    margin-top: 35px;
  }

  body.home-page .home-project-card h3 {
    min-height: 0;
  }
}


/* =========================================================
   VÄIKE TAHVEL
   ========================================================= */

@media (max-width: 880px) {
  body.home-page .home-container {
    width: min(100% - 38px, 1220px);
  }

  body.home-page .home-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.home-page .home-hero-copy {
    max-width: 760px;
    text-align: center;
    margin-inline: auto;
  }

  body.home-page .home-kicker {
    justify-content: center;
  }

  body.home-page .home-hero-copy > p {
    margin-inline: auto;
  }

  body.home-page .home-hero-actions,
  body.home-page .home-hero-path {
    justify-content: center;
  }

  body.home-page .home-hero-visual {
    min-height: 520px;
  }

  body.home-page .home-values-grid {
    grid-template-columns: 1fr;
  }

  body.home-page .home-value-card {
    min-height: auto;
  }

  body.home-page .home-value-card-featured {
    transform: none;
  }

  body.home-page .home-value-card-featured:hover {
    transform: translateY(-10px);
  }

  body.home-page .home-leadership-grid,
  body.home-page .home-team-grid {
    grid-template-columns: 1fr;
  }

  body.home-page .home-contact-layout {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   TELEFON
   ========================================================= */

@media (max-width: 640px) {

  body.home-page .home-container {
    width: min(100% - 32px, 1220px);
  }

  body.home-page .home-hero {
    padding: 65px 0 75px;
  }

  body.home-page .home-hero h1 {
    max-width: 10.5ch;
    margin-inline: auto;
    font-size: clamp(43px, 13vw, 62px);
    overflow-wrap: anywhere;
  }

  body.home-page .home-hero-copy {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-inline: auto;
  }

  body.home-page .home-hero-copy > p {
    width: 100%;
    max-width: 35ch;
    margin-inline: auto;
    font-size: clamp(17px, 4.8vw, 20px);
    line-height: 1.55;
    text-align: center;
  }

  body.home-page .home-kicker {
    padding: 9px 13px;
    font-size: 10px;
    letter-spacing: 0.13em;
  }

  body.home-page .home-hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: min(420px, 100%);
    margin-inline: auto;
  }

  body.home-page .home-hero-path {
    width: 100%;
    max-width: 100%;
  }

  body.home-page .home-button {
    width: 100%;
  }

  body.home-page .home-hero-visual {
    min-height: auto;
  }

  body.home-page .home-orbit {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    isolation: isolate;
  }

  body.home-page .home-orbit-art {
    inset: auto auto 0 50%;
    width: min(390px, 100%);
    aspect-ratio: 1;
    opacity: 0.8;
    transform: translateX(-50%);
  }

  body.home-page .home-value-tabs {
    position: static;
    order: 1;
    display: grid;
    width: min(100%, 390px);
    gap: 9px;
    pointer-events: auto;
  }

  body.home-page .home-logo-stage {
    order: 2;
    width: min(100%, 340px);
    min-height: 335px;
    padding: 28px 22px 25px;
    border-radius: 30px;
  }

  body.home-page .home-hero-logo {
    width: 150px;
    height: 88px;
  }

  body.home-page .home-organization-name {
    font-size: 18px;
  }

  body.home-page .home-floating-badge {
    position: static;
    width: 100%;
    max-width: none;
    min-height: 52px;
    padding: 11px 14px;
    font-size: 12px;
    animation: none;
  }

  body.home-page .home-scroll-cue {
    display: none;
  }

  body.home-page .home-section {
    padding: 75px 0;
  }

  body.home-page .home-section-heading h2,
  body.home-page .home-contact-panel h2 {
    font-size: 39px;
  }

  body.home-page .home-section-heading > p,
  body.home-page .home-section-heading-split > p {
    font-size: 16px;
  }

  body.home-page .home-value-card {
    padding: 27px;
    border-radius: 23px;
  }

  body.home-page .home-value-icon {
    margin-bottom: 38px;
  }

  body.home-page .home-marquee {
    padding: 18px 0;
  }

  body.home-page .home-person-card,
  body.home-page .home-person-card-lead {
    min-height: auto;
    padding: 22px;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    border-radius: 23px;
  }

  body.home-page .home-person-card .team-photo,
  body.home-page .home-person-card-lead .team-photo {
    width: 88px;
    height: 105px;
    border-radius: 19px;
  }

  body.home-page .home-person-photo-wrap > span {
    width: 36px;
    height: 36px;
    right: -5px;
  }

  body.home-page .home-person-info h3,
  body.home-page .home-person-card-lead .home-person-info h3 {
    font-size: 20px;
  }

  body.home-page .home-person-info > p:last-child {
    font-size: 13px;
  }

  body.home-page .home-team-group-heading {
    display: block;
  }

  body.home-page .home-team-group-heading h3 {
    margin-top: 6px;
  }

  body.home-page .home-team-group-heading::after {
    display: none;
  }

  body.home-page .home-project-card {
    min-height: 420px;
    padding: 27px;
    border-radius: 25px;
  }

  body.home-page .home-project-index {
    font-size: 44px;
  }

  body.home-page .home-contact-panel,
  body.home-page .home-contact-card {
    padding: 29px;
    border-radius: 26px;
  }

  body.home-page .home-form-row {
    grid-template-columns: 1fr;
  }

  body.home-page .newsletter-content:hover {
    transform: none;
  }
}


/* =========================================================
   VÄGA VÄIKE TELEFON
   ========================================================= */

@media (max-width: 420px) {
  body.home-page .home-logo-stage {
    width: min(100%, 330px);
    min-height: 330px;
  }

  body.home-page .home-person-card,
  body.home-page .home-person-card-lead {
    grid-template-columns: 1fr;
  }

  body.home-page .home-person-card .team-photo,
  body.home-page .home-person-card-lead .team-photo {
    width: 105px;
    height: 125px;
  }
}


/* =========================================================
   VÄHENDATUD LIIKUMINE
   ========================================================= */

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

  body.home-page [data-reveal] {
    opacity: 1;
    translate: none;
    filter: none;
  }
}


/* =========================================================
   UUDISED — eraldi lehe ühendus ja dünaamiline sisu
   ========================================================= */

body.home-page .home-news-all {
  text-decoration: none;
}

body.home-page .home-news-all:hover {
  color: var(--home-dark);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(14, 59, 3, 0.13);
}

body.home-page .home-news-filters a {
  display: inline-flex;
  min-height: 42px;
  padding: 10px 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(14, 59, 3, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--home-green);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

body.home-page .home-news-filters a:hover,
body.home-page .home-news-filters a.is-active {
  border-color: var(--home-dark);
  background: var(--home-dark);
  color: var(--home-white);
  transform: translateY(-2px);
}

body.home-page a.home-news-card {
  color: inherit;
  text-decoration: none;
}

body.home-page a.home-news-card:hover {
  color: inherit;
}

body.home-page .home-news-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 260px;
  padding: 40px;
  place-items: center;
  border: 1px dashed rgba(14, 59, 3, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--home-text-soft);
  text-align: center;
}

body.home-page .home-news-empty span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: var(--home-accent);
  color: var(--home-dark);
  font-size: 26px;
}

body.home-page.photo-modal-open {
  overflow: hidden;
}

@media (max-width: 460px) {
  body.home-page .home-news-filters a {
    width: 100%;
  }
}

/* =========================================================
   AVALEHE UUDISTE FOTOD — AVAMINE SUURELT
   Uudiste kaartide mõõte ja paigutust ei muudeta.
   ========================================================= */

body.home-page .home-news-photo-openable {
  cursor: zoom-in;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.home-page .home-news-photo-openable:focus-visible {
  outline: 4px solid rgba(92, 228, 19, 0.58);
  outline-offset: -4px;
}

body.home-page .home-news-photo-zoom {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 8;

  display: grid;
  width: 38px;
  height: 38px;

  place-items: center;

  border: 1px solid rgba(200, 246, 158, 0.72);
  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      rgba(7, 31, 2, 0.95),
      rgba(37, 75, 16, 0.93)
    );

  color: var(--home-accent);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.34),
    0 0 0 6px rgba(92, 228, 19, 0.08);

  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;

  opacity: 0;
  pointer-events: none;

  transform:
    scale(0.62)
    rotate(-30deg);

  transition:
    opacity 0.25s ease,
    transform 0.38s
      cubic-bezier(0.18, 0.8, 0.2, 1);
}

body.home-page
.home-news-photo-openable:hover
.home-news-photo-zoom,
body.home-page
.home-news-photo-openable:focus-visible
.home-news-photo-zoom {
  opacity: 1;

  transform:
    scale(1)
    rotate(0deg);
}

body.home-page .photo-modal.is-news .photo-modal-card {
  width: min(1120px, 94vw);
}

body.home-page .photo-modal.is-news .photo-modal-visual {
  min-height: min(68vh, 690px);
  padding: 48px 30px 28px;

  background:
    radial-gradient(
      circle at 84% 12%,
      rgba(92, 228, 19, 0.13),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      #102f08,
      #041701
    );

  border-color: rgba(200, 246, 158, 0.16);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -35px 90px rgba(0, 0, 0, 0.24),
    0 26px 72px rgba(0, 0, 0, 0.3);
}

body.home-page .photo-modal.is-news .photo-modal-kicker {
  border-color: rgba(200, 246, 158, 0.25);
  background: rgba(7, 31, 2, 0.74);
  color: #c8f69e;
}

body.home-page .photo-modal.is-news .photo-modal-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(61vh, 620px);

  object-fit: contain;
  border-radius: 22px;

  filter:
    drop-shadow(0 30px 44px rgba(0, 0, 0, 0.34));
}

body.home-page .photo-modal.is-news .photo-modal-role {
  color: var(--home-accent);
}

body.home-page .photo-modal.is-news .photo-modal-description {
  max-width: 820px;
}

body.home-page .home-news-media .home-news-photo-zoom,
body.home-page .home-news-small-media .home-news-photo-zoom {
  z-index: 6;
}

@media (max-width: 700px) {
  body.home-page .home-news-photo-zoom {
    top: 11px;
    right: 11px;

    width: 34px;
    height: 34px;

    font-size: 21px;

    opacity: 1;

    transform:
      scale(0.9)
      rotate(0deg);
  }

  body.home-page .photo-modal.is-news .photo-modal-card {
    width: min(100%, 620px);
  }

  body.home-page .photo-modal.is-news .photo-modal-visual {
    min-height: min(54vh, 460px);
    padding: 48px 16px 20px;
  }

  body.home-page .photo-modal.is-news .photo-modal-image {
    max-height: 46vh;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .home-news-photo-zoom {
    transition: none !important;
  }
}

@media (max-width: 360px) {
  html body.home-page .home-project-card
  h3[data-i18n="home.projects.campTitle"] {
    font-size: 24px;
  }

  html[lang="ru"] body.home-page .home-contact-panel h2 {
    font-size: 36px;
  }
}
