/* Homepage feature carousel */
.home-hero {
  --control-inset: 23px;
  --hero-ease: cubic-bezier(.22,.75,.23,1);
  align-items: stretch;
  min-height: clamp(488px, 41vw, 675px);
  overflow: hidden;
}
.home-hero::after { display: none; }
.hero-panel {
  position: relative;
  isolation: isolate;
  grid-area: 1 / 1;
  display: grid;
  align-items: center;
  min-width: 0;
  background: #102e27;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .72s ease, visibility 0s linear .72s;
}
.hero-panel.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.hero-panel .hero-content { padding-block: 56px 101px; }
.hero-panel:not(.is-active) .hero-content { opacity: 0; }
.hero-panel h2 {
  font-weight: 750;
  line-height: 1.15;
  font-size: clamp(42px, 5.15vw, 77px);
  letter-spacing: .015em;
}
.hero-panel h2 span { display: block; width: fit-content; }
.hero-panel .hero-kicker { margin-bottom: 19px; }
.hero-panel .hero-intro { max-width: 460px; }
.hero-panel .hero-image { transform-origin: 70% 50%; }
.hero-panel--depot .hero-shade {
  background:
    linear-gradient(90deg, #082821ee 0%, #0b3028d9 24%, #0b30288a 44%, #12392b10 71%),
    linear-gradient(0deg, #09271fd9, transparent 35%);
}
.hero-panel--cabinet .hero-image { left: auto; width: 68%; object-position: 48% 45%; }
.hero-panel--cabinet .hero-shade {
  background: linear-gradient(90deg, #142d29 10%, #142d29f2 32%, #142d297a 55%, #142d291a 84%),
    linear-gradient(0deg, #11251ee8, transparent 38%);
}
.hero-panel--inspection { background: #0c2330; }
.hero-panel--inspection .hero-image {
  left: auto;
  width: 66%;
  object-position: 61% 50%;
}
.hero-panel--inspection .hero-shade {
  background: linear-gradient(90deg, #0b242b 12%, #0b242bef 34%, #0b242b40 65%, #0b242b10 100%),
    linear-gradient(0deg, #0a212afb, transparent 33%);
}
.hero-pagination {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: var(--control-inset);
  display: flex;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 99px;
  background: #0b241e79;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-pagination span {
  width: 7px;
  height: 7px;
  border: 1px solid #fff;
  border-radius: 50%;
  opacity: .68;
  transition: opacity .35s ease, background-color .35s ease, transform .35s ease;
}
.hero-pagination .is-current {
  background: #fff;
  opacity: 1;
  transform: scale(1.2);
}
.hero-arrows {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}
.hero-arrows button {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #fff8;
  border-radius: 50%;
  color: #fff;
  background: #0e2b23bd;
  transform: translateY(-50%);
  cursor: pointer;
  pointer-events: auto;
  transition: opacity .22s ease, background-color .22s ease;
}
.hero-arrows button:hover { background: #214e3fec; }
.hero-arrows button:first-child { left: clamp(6px, 1vw, 24px); }
.hero-arrows button:last-child { right: clamp(6px, 1vw, 24px); }
.hero-arrows button span {
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.hero-arrows button:first-child span { transform: translateX(2px) rotate(-135deg); }
.hero-arrows button:last-child span { transform: translateX(-2px) rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .home-hero:not(:hover) .hero-arrows button:not(:focus-visible) {
    opacity: 0;
    pointer-events: none;
  }
}
.home-hero :focus-visible { outline-color: #ffd391; }

/* Mission and values */
.home-values {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f6f8f2;
  background: radial-gradient(ellipse at 80% 22%, #264f40 0, transparent 58%),
    linear-gradient(135deg, #0d2d25 0%, #133d31 96%);
}
.home-values::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(320px, 51vw, 790px);
  height: clamp(320px, 51vw, 790px);
  left: min(59%, calc(50% + 130px));
  top: -44%;
  border: 1px solid #e7c79138;
  border-radius: 50%;
  box-shadow: 0 0 0 32px #d8e6c508, 0 0 0 33px #e7c79125,
    0 0 0 63px #d8e6c506, 0 0 0 64px #e7c7911d,
    0 0 0 94px #d8e6c504, 0 0 0 95px #e7c79113;
  opacity: .64;
  pointer-events: none;
}
.home-values .hero-kicker { color: #eacb97; }
.home-values h1 {
  max-width: 15em;
  font-size: clamp(38px, 5.6vw, 82px);
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.21;
  text-wrap: initial;
}
.home-values h1 span { display: block; width: fit-content; }
.home-values .value-accent {
  --value-delay: 130ms;
  color: #f0cc8d;
}
@supports (background-clip: text) {
  .home-values .value-accent {
    color: transparent;
    background: linear-gradient(105deg, #fff0ca, #eac184 36%, #e1b373 46%, #fff3d7 53%, #e8bd7f 61%, #d7a56d);
    background-size: 240% 100%;
    background-position: 0 50%;
    background-clip: text;
  }
}
.home-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3.2vw, 42px);
  margin-top: clamp(29px, 4.2vw, 59px);
}
.home-value-grid > div {
  position: relative;
  min-width: 0;
  border-top: 1px solid #e3ead348;
  padding: 16px 0 0;
}
.home-value-grid > div::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(23px, 3vw, 42px);
  border-top: 1px solid #f5c57e;
}
.home-value-grid > div:nth-child(2) { --value-delay: 95ms; }
.home-value-grid > div:nth-child(3) { --value-delay: 190ms; }
.home-value-grid > div:nth-child(4) { --value-delay: 285ms; }
.home-value-grid dt {
  font-size: clamp(26px, 3.25vw, 48px);
  font-weight: 650;
  letter-spacing: .085em;
  line-height: 1.24;
}
.home-value-grid dd { margin-top: 8px; color: #d9e2d6; font-size: clamp(13px, 1.25vw, 16px); }

/* Homepage motion */
@media (prefers-reduced-motion: no-preference) {
  .carousel-ready .hero-panel.is-active .hero-image {
    animation: home-pan 8.5s ease-out both;
  }
  .carousel-ready .hero-panel.is-active .hero-kicker {
    animation: home-fade .38s ease-out both;
  }
  .carousel-ready .hero-panel.is-active .hero-kicker::before {
    transform-origin: left;
    animation: home-line .52s var(--hero-ease) both;
  }
  .carousel-ready .hero-panel.is-active :is(h1, h2) > span {
    animation: home-wipe .78s var(--hero-ease) var(--value-delay, 55ms) both;
  }
  .carousel-ready .hero-panel.is-active h2 > span + span { --value-delay: 155ms; }
  .carousel-ready .home-values.is-active h1 .value-accent {
    animation: home-wipe .78s var(--hero-ease) var(--value-delay) both,
      home-gold-sweep 1.34s ease-out .52s both;
  }
  .carousel-ready .hero-panel.is-active .hero-intro {
    animation: home-focus .63s ease-out .25s both;
  }
  .carousel-ready .hero-panel.is-active .hero-actions {
    animation: home-fade .46s ease-out .42s both;
  }
  .carousel-ready .home-values.is-active .home-value-grid > div::before {
    transform-origin: left;
    animation: home-line .5s var(--hero-ease) calc(390ms + var(--value-delay, 0ms)) both;
  }
  .carousel-ready .home-values.is-active .home-value-grid dt {
    animation: home-focus .54s ease-out calc(435ms + var(--value-delay, 0ms)) both;
  }
  .carousel-ready .home-values.is-active .home-value-grid dd {
    animation: home-fade .45s ease-out calc(525ms + var(--value-delay, 0ms)) both;
  }

  .will-reveal { opacity: 0; }
  .will-reveal.is-revealed {
    opacity: 1;
    animation: var(--home-reveal, home-fade) .66s cubic-bezier(.22,.75,.23,1) var(--reveal-delay, 0ms) both;
  }
  .will-reveal:focus-within,
  :focus-within > .will-reveal { opacity: 1; animation: none; }

  [data-reveal="wipe"] { --home-reveal: home-wipe; }
  [data-reveal="image"] { --home-reveal: home-image-reveal; }
  [data-reveal="card"] { --home-reveal: home-card-copy; }
  .home-scenario-list li[data-reveal="rule"] a { position: relative; }
  .home-scenario-list .is-revealed a::after {
    content: "";
    position: absolute;
    height: 1px;
    inset: auto 0 0;
    background: linear-gradient(90deg, #e5b979, #e5b97935);
    transform-origin: left;
    pointer-events: none;
    animation: home-rule .85s ease-out var(--reveal-delay, 0ms) both;
  }

  .home-products .catalog-card:nth-child(2) { --reveal-delay: 100ms; }
  .home-products .catalog-card:nth-child(3) { --reveal-delay: 180ms; }
  .home-scenario-list li:nth-child(2) { --reveal-delay: 65ms; }
  .home-scenario-list li:nth-child(3) { --reveal-delay: 130ms; }
  .home-scenario-list li:nth-child(4) { --reveal-delay: 195ms; }
}

@keyframes home-pan { from { transform: scale(1.01); } to { transform: scale(1.048); } }
@keyframes home-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes home-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes home-wipe {
  from { clip-path: inset(0 100% 0 0); opacity: .55; }
  to { clip-path: inset(0); opacity: 1; }
}
@keyframes home-gold-sweep {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}
@keyframes home-focus {
  from { opacity: 0; filter: blur(3px); }
  to { opacity: 1; filter: none; }
}
@keyframes home-image-reveal {
  from { clip-path: inset(0 0 0 13%); opacity: 0; }
  to { clip-path: inset(0); opacity: 1; }
}
@keyframes home-card-copy {
  from { transform: translateX(-9px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes home-rule {
  0% { transform: scaleX(0); opacity: 0; }
  62% { transform: scaleX(1); opacity: .85; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* Project figures and company introduction */
.home-overview .overview-grid { padding-block: clamp(16px, 2.15vw, 31px); }
.home-overview .overview-grid dd { color: var(--green); }
.home-overview .overview-detail dd { color: var(--muted); }
.home-count {
  display: inline-block;
  min-width: 2ch;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.home-count[data-count="349"] { min-width: 3ch; }
.home-count.count-settled { animation: home-count-settle .32s ease-out; }
@keyframes home-count-settle { 45% { transform: translateY(-3px); } }

.home-intro {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(28px,5.8vw,88px);
  align-items: center;
}
.home-intro-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); line-height: 1.85; }
.home-capabilities { margin-block: 21px; border-top: 1px solid var(--line); }
.home-capabilities > div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 13px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.home-capabilities dt { font-weight: 700; color: var(--green); }
.home-capabilities dd { color: var(--muted); font-size: 14px; }
.home-intro-visual {
  margin: 0;
  padding: 13px;
  border: 1px solid #cbdbcf;
  background: #e9f0e8;
}
.home-intro-visual > div { aspect-ratio: 1.57; background: #152f3b; overflow: hidden; }
.home-intro-visual img { width: 100%; height: 100%; object-fit: contain; }
.home-intro-visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px 15px;
  flex-wrap: wrap;
  color: var(--ink);
  font-size: 13px;
  padding: 12px 4px 1px;
}
.home-intro-visual figcaption a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

.home-products { background: #eef3ea; }
.home-product-links, .home-scenario-list { list-style: none; margin: 0; padding: 0; }
.home-product-links {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  column-gap: clamp(14px,2vw,25px);
}
.home-product-links a, .home-scenario-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
}
.home-product-links a {
  border-top: 1px solid #cedad1;
  padding: 11px 3px;
  font-size: 14px;
  font-weight: 650;
  color: var(--green);
}
.home-product-links a:hover { color: #86531f; }
.home-solutions .project-grid { align-items: center; }
.home-scenario-list { border-top: 1px solid #73968b7d; }
.home-scenario-list a {
  border-bottom: 1px solid #73968b7d;
  min-height: 71px;
  padding: 10px 8px 10px 2px;
  transition: background .2s, padding .2s;
}
.home-scenario-list a:hover { background: #d4e9d518; padding-left: 10px; }
.home-scenario-list strong { display: block; font-size: clamp(15px, 1.45vw, 20px); }
.home-scenario-list small { display: block; color: #d2e3d6; font-size: 13px; }
.home-scenario-list a > span:last-child { color: var(--gold); }
.home-contact { background: #e5eee4; border-top: 1px solid var(--line); padding-block: clamp(29px,4.6vw,61px); }
.home-contact h2 { font-size: clamp(26px,3vw,42px); }
.home-contact p { color: var(--muted); margin-top: 9px; }

@media (max-width: 950px) {
  .hero-arrows button {
    top: auto;
    bottom: max(8px, calc(var(--control-inset) - 9px));
    width: 39px;
    height: 39px;
    transform: none;
  }
  .hero-arrows button:first-child { left: 19px; }
  .hero-arrows button:last-child { right: 19px; }
}
@media (max-width: 850px) {
  .home-hero { min-height: 506px; }
  .hero-panel--cabinet .hero-image, .hero-panel--inspection .hero-image { width: 83%; }
  .home-intro { gap: 27px; }
}
@media (max-width: 670px) {
  .home-hero { min-height: 510px; --control-inset: 17px; }
  .hero-panel .hero-content { padding-block: 78px 100px; }
  .hero-panel h2 { font-size: clamp(32px, 8.2vw, 51px); }
  .hero-panel .hero-kicker { margin-bottom: 14px; }
  .hero-panel--depot .hero-shade {
    background: linear-gradient(90deg, #082821eb, #0b302897 58%, #12392b25),
      linear-gradient(0deg, #09271fee, transparent 75%);
  }
  .hero-panel--cabinet .hero-image, .hero-panel--inspection .hero-image { width: 100%; object-position: 54% 48%; }
  .hero-panel--cabinet .hero-shade {
    background: linear-gradient(90deg, #102d28f7, #102d28bc 54%, #102d284d),
      linear-gradient(0deg, #11251eee, transparent 70%);
  }
  .hero-panel--inspection .hero-shade {
    background: linear-gradient(90deg, #0b242bf7, #0b242baa 63%, #0b242b46),
      linear-gradient(0deg, #0a212aff, transparent 71%);
  }
  .home-values .hero-content { padding-block: 58px 81px; }
  .home-values h1 { font-size: clamp(33px, 8.6vw, 52px); }
  .home-values::before { left: 48%; top: -21%; }
  .home-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 19px; }
  .home-value-grid > div:nth-child(n) { --value-delay: 0ms; }
  .home-value-grid > div:nth-child(even) { --value-delay: 110ms; }
  .home-intro { grid-template-columns: 1fr; }
  .home-product-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 13px; }
}
@media (max-width: 360px) {
  .home-overview .overview-grid > div { padding-right: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-panel, .hero-arrows button, .hero-pagination span, .home-scenario-list a { transition: none; }
  .home-count.count-settled { animation: none; }
}

/* Hover zoom is scoped to homepage image frames and does not change layout. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-page .home-hero .hero-image { transition: scale .8s cubic-bezier(.2,.65,.3,1); }
  .home-page .home-hero:hover .hero-panel.is-active .hero-image { scale: 1.045; }
  .home-page .home-intro-visual { overflow: hidden; }
  .home-page .home-intro-visual img { transition: transform .65s cubic-bezier(.2,.65,.3,1); transform-origin: center; }
  .home-page .home-intro-visual:hover img { transform: scale(1.07); }
  .home-page .home-products .catalog-card > a:hover .catalog-media img,
  .home-page .home-products .catalog-card > a:focus-visible .catalog-media img,
  .home-page .news-image:hover .catalog-media img,
  .home-page .news-image:focus-visible .catalog-media img { transform: scale(1.07); }
}

/* Brand slide: a restrained digital grain-depot illustration balances the headline. */
.home-values .hero-content { position:relative; }
.brand-granary { position:absolute; margin:0; width:44%; right:-3%; top:9%; pointer-events:none; }
.brand-granary img { width:100%; height:auto; display:block; position:relative; z-index:1; }
.brand-granary-orbit { display:none; position:absolute; inset:10% 3% -4% 9%; border:1px solid #b8d9bd18; border-radius:50%; transform:rotate(-20deg); }
.home-values::before { opacity:.22; }
.home-values :is(h1,h2) { position:relative; z-index:2; max-width:8.5em; }
.home-values .home-value-grid { position:relative; z-index:2; }
@media(min-width:1000px) { .brand-granary{top:0;right:-1%;width:42%}.home-values .hero-content{padding-top:50px;padding-bottom:90px}.home-values .home-value-grid{margin-top:48px}.home-values h1,.home-values h2{font-size:clamp(40px,5.6vw,82px)} }
@media(min-width:1600px) { .brand-granary{top:0;right:0;width:43%} }
@media(max-width:850px) { .brand-granary{width:42%;right:-6%;top:15%;opacity:.7}.home-values h1,.home-values h2{font-size:clamp(33px,5.3vw,48px)} }
@media(max-width:670px) { .brand-granary{right:-23%;width:75%;top:8%;opacity:.24}.home-values :is(h1,h2){max-width:100%}.home-values .hero-kicker{position:relative;z-index:2} }
@media(prefers-reduced-motion:no-preference) { .carousel-ready .home-values.is-active .brand-granary img{animation:brand-granary-reveal 1.2s cubic-bezier(.2,.7,.2,1) both}.brand-granary-orbit{animation:brand-orbit-breathe 6s ease-in-out infinite} }
@keyframes brand-granary-reveal { from{opacity:0;transform:translateX(14px);filter:blur(3px)}to{opacity:1;transform:none;filter:none} }
@keyframes brand-orbit-breathe { 50%{opacity:.4;transform:rotate(-20deg) scale(1.05)} }

