.hero {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.home-main .post-card-image {
  display: block;
  overflow: hidden;
}

/* One focal entrance; everything stays visible without carousel enhancement. */
@keyframes home-hero-arrive {
  from {
    opacity: 0.35;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-slide[aria-hidden="false"] .hero-content > *,
  .hero-slide:only-child .hero-content > * {
    animation: home-hero-arrive 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-content > :nth-child(2) {
    animation-delay: 40ms;
  }
  .hero-content > :nth-child(3) {
    animation-delay: 80ms;
  }
  .hero-content > :nth-child(4) {
    animation-delay: 120ms;
  }
  .hero-content > :nth-child(5) {
    animation-delay: 160ms;
  }
  .home-main .category-card img,
  .home-main .post-card-image img {
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .home-main .circle-arrow .icon,
  .home-main .text-link .icon {
    transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .home-main .button {
    transition:
      background-color 180ms,
      color 180ms,
      border-color 180ms,
      transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .home-main .category-card:focus-visible img,
  .home-main .post-card:focus-within .post-card-image img {
    transform: scale(1.035);
  }
  .home-main .category-card:focus-visible .circle-arrow .icon,
  .home-main .text-link:focus-visible .icon {
    transform: translateX(3px);
  }
  .home-main .button:active {
    transform: scale(0.98);
  }
  @media (hover: hover) and (pointer: fine) {
    .home-main .category-card:hover img,
    .home-main .post-card:hover .post-card-image img {
      transform: scale(1.035);
    }
    .home-main .category-card:hover .circle-arrow .icon,
    .home-main .text-link:hover .icon {
      transform: translateX(3px);
    }
    .home-main .button:hover:not(:active) {
      transform: translateY(-2px);
    }
  }
}
.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-track::-webkit-scrollbar {
  display: none;
}
.hero-slide {
  flex: 0 0 100%;
  position: relative;
  min-width: 0;
  min-height: 420px;
  scroll-snap-align: start;
}
.hero-image {
  position: absolute;
  inset: 0;
}
.hero-image picture,
.hero-image img,
.hero-image .image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  padding-block: 45px;
  pointer-events: none;
}
.hero-content > * {
  max-width: 460px;
}
.hero-content a {
  pointer-events: auto;
}
.hero-title {
  font-size: 58px;
  color: var(--red);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 8px;
}
.hero-subtitle {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero-description {
  font-size: 17px;
  color: #3b4962;
  line-height: 1.5;
  margin-bottom: 20px;
}
.hero .eyebrow {
  margin-bottom: 12px;
}
.hero .carousel-prev,
.hero .carousel-next {
  position: absolute;
  top: 46%;
  display: none;
}
.hero.is-enhanced .carousel-prev,
.hero.is-enhanced .carousel-next {
  display: flex;
}
.hero .carousel-prev {
  left: 24px;
}
.hero .carousel-next {
  right: 24px;
}
.hero > .carousel-dots {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
}
.hero:not(.is-enhanced) > .carousel-dots {
  display: none;
}
.benefits-section {
  padding-block: 18px 24px;
}
.benefits-section .feature p {
  display: none;
}
.categories-section {
  background: linear-gradient(120deg, #f1f5f8, #f8f9fa);
  padding-top: 42px;
  padding-bottom: 44px;
}
.category-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.category-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 12px 12px;
  text-align: center;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.category-card picture {
  position: relative;
  width: 100%;
  display: block;
  aspect-ratio: 1;
  flex: none;
  overflow: hidden;
}
.category-card .category-image,
.category-card .image-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}
.category-card .image-placeholder {
  display: flex;
}
.category-card h3 {
  font-size: 16px;
  margin: 16px 0 0;
  font-weight: 700;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-wrap: anywhere;
}
.category-card p {
  font-size: 12px;
  color: var(--muted);
  margin-block: 4px;
  flex-grow: 1;
}
.category-card .circle-arrow {
  width: 38px;
  height: 38px;
  margin-top: 4px;
}
.category-carousel > .carousel-dots {
  display: none;
}
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.split-copy > p:not(.eyebrow) {
  font-size: 18px;
  color: #59657b;
  line-height: 1.55;
  margin-bottom: 18px;
}
.split-image {
  position: relative;
  min-width: 0;
}
.split-image picture {
  display: block;
}
.split-image img,
.split-image .image-placeholder {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}
.split-image figcaption {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 10px;
  background: #fff;
  color: #46536a;
  border-radius: 4px;
  padding: 3px 7px;
  box-shadow: 0 1px 5px #0001;
}
.about-section {
  background: #fff;
  padding-bottom: 16px;
}
.stats-section {
  background: #fff;
  padding-block: 0 24px;
}
.stats-section .feature h2 {
  color: var(--navy);
}
.factory-section {
  background: var(--cool);
  padding-block: 40px;
}
.factory-section .split-layout {
  grid-template-columns: 1.3fr 0.8fr;
  gap: 60px;
}
.factory-section .split-image {
  grid-column: 1;
  grid-row: 1;
}
.factory-section .split-copy {
  grid-column: 2;
  grid-row: 1;
}
.factory-section .split-image img {
  height: 300px;
}
.factory-benefits {
  margin-top: 30px;
}
.factory-benefits .feature-icon {
  border: 0;
  background: none;
  color: #ffac00;
  width: 60px;
  height: 60px;
}
.factory-benefits .feature-icon .icon {
  width: 42px;
  height: 42px;
}
.factory-benefits .feature {
  gap: 16px;
  padding-inline: 20px;
}
.factory-benefits .feature:first-child {
  padding-left: 0;
}
.factory-benefits .feature h3 {
  font-size: 14px;
}
.factory-benefits .feature p {
  font-size: 13px;
}
.partnership-section {
  background: var(--cool);
  padding-block: 32px;
  overflow: hidden;
  position: relative;
}
.partnership-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 140px;
}
.partnership-copy {
  position: relative;
  z-index: 1;
  max-width: 420px;
}
.partnership-copy .section-title {
  font-size: 32px;
}
.partnership-copy p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.partnership-inner > .button-row {
  position: relative;
  z-index: 1;
  gap: 16px;
  margin-left: auto;
  justify-content: flex-end;
  max-width: 400px;
}
.partnership-image {
  position: absolute;
  inset: -32px calc((min(100vw, 1200px) - 100vw) / 2) -32px 50%;
  mask-image: linear-gradient(to right, transparent, black 40%);
}
.partnership-image picture,
.partnership-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
}
.news-section {
  background: #fff;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.news-grid .post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.news-grid .post-card-content {
  padding: 16px 18px;
}
.news-grid .post-card h2 {
  font-size: 17px;
  margin: 0;
  line-height: 1.45;
}
.news-grid .post-card img {
  aspect-ratio: 1.6;
  object-fit: cover;
  width: 100%;
}
.legacy-products {
  background: #fff;
}
.legacy-products + .legacy-products {
  padding-top: 0;
}
.legacy-products .section-title {
  font-size: 30px;
}
.legacy-editorial {
  background: var(--cool);
  padding-block: 40px;
}
.legacy-editorial .prose {
  max-width: 1000px;
}
.legacy-editorial .page-content,
.legacy-editorial .container {
  width: 100%;
  max-width: none;
  padding: 0;
}
.legacy-editorial :is(.table-content, .box-content) {
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
}
.legacy-editorial [id] {
  scroll-margin-top: 100px;
}
.hero-track:focus-visible,
.category-track:focus-visible {
  outline-offset: -3px;
}
@media (min-width: 1440px) {
  .hero-content {
    padding-block: 60px;
  }
  .hero-slide {
    min-height: 460px;
  }
}
@media (max-width: 1100px) and (min-width: 768px) {
  .hero-content {
    padding-left: 48px;
  }
  .hero-title {
    font-size: 48px;
  }
  .hero-subtitle {
    font-size: 28px;
  }
  .hero-content > * {
    max-width: 400px;
  }
  .hero-slide {
    min-height: 400px;
  }
  .split-layout,
  .factory-section .split-layout {
    gap: 36px;
  }
  .category-card h3 {
    font-size: 14px;
  }
  .category-card p {
    font-size: 11px;
  }
  .partnership-inner {
    gap: 20px;
  }
  .partnership-copy {
    max-width: 350px;
  }
  .partnership-inner > .button-row {
    flex-direction: column;
    align-items: stretch;
  }
  .partnership-inner .button {
    font-size: 12px;
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .home-main {
    background: var(--cool);
  }
  .hero {
    background: #fff;
  }
  .hero-slide {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-content {
    padding-block: 26px 18px;
    order: 0;
    width: calc(100% - 40px);
  }
  .hero-image {
    position: relative;
    order: 1;
    height: auto;
    margin: 0 20px 18px;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1.55;
    background: #fff;
  }
  .hero-image img {
    object-fit: cover;
  }
  .hero-content > * {
    max-width: none;
  }
  .hero-title {
    font-size: 36px;
    line-height: 1.15;
    margin-bottom: 8px;
  }
  .hero-subtitle {
    font-size: 27px;
    line-height: 1.33;
    margin-bottom: 10px;
  }
  .hero-description {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 18px;
  }
  .hero .eyebrow {
    font-size: 10px;
    margin-bottom: 14px;
  }
  .hero .button-row {
    gap: 10px;
    flex-wrap: nowrap;
  }
  .hero .button {
    padding-inline: 18px;
    flex: 1;
    font-size: 11px;
    min-height: 46px;
  }
  .hero .button .icon {
    display: none;
  }
  .hero .carousel-prev,
  .hero .carousel-next,
  .hero.is-enhanced .carousel-prev,
  .hero.is-enhanced .carousel-next {
    display: none;
  }
  .hero > .carousel-dots {
    position: static;
    margin-top: -12px;
    padding-bottom: 6px;
    background: var(--cool);
  }
  .hero:not(:has(.carousel-dots)) {
    padding-bottom: 4px;
  }
  .benefits-section {
    padding-block: 24px 6px;
  }
  .benefits-section .feature p {
    display: block;
  }
  .categories-section {
    background: var(--cool);
    padding-block: 32px 14px;
    overflow: hidden;
  }
  .category-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .category-track::-webkit-scrollbar {
    display: none;
  }
  .category-track .category-card {
    flex: 0 0 74%;
    scroll-snap-align: center;
    padding: 0 0 14px;
    text-align: left;
    align-items: flex-start;
    overflow: hidden;
    border: 1px solid var(--border);
  }
  .category-card picture {
    aspect-ratio: 1.15;
    background: white;
  }
  .category-card .category-image {
    object-fit: contain;
    border-radius: 0;
  }
  .category-card h3 {
    font-size: 16px;
    margin: 16px 16px 0;
  }
  .category-card p {
    font-size: 12px;
    margin: 4px 16px;
    min-height: 36px;
  }
  .category-card .circle-arrow {
    margin-left: 16px;
  }
  .category-carousel > .carousel-dots {
    display: flex;
    margin-top: 4px;
  }
  .split-layout,
  .factory-section .split-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .split-copy > p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.65;
  }
  .split-copy .button {
    font-size: 12px;
  }
  .split-image img,
  .split-image .image-placeholder {
    height: auto;
    aspect-ratio: 1.7;
    object-fit: cover;
    border-radius: 14px;
  }
  .about-section {
    background: var(--cool);
    padding-top: 26px;
    padding-bottom: 18px;
  }
  .stats-section {
    background: var(--cool);
    padding-bottom: 20px;
  }
  .stats-section .feature-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stats-section .feature {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
    gap: 12px;
  }
  .stats-section .feature-icon {
    width: 36px;
    height: 36px;
  }
  .stats-section .feature h2 {
    font-size: 13px;
  }
  .stats-section .feature p {
    font-size: 11px;
  }
  .factory-section {
    padding-block: 24px;
  }
  .factory-section .split-layout {
    gap: 18px;
  }
  .factory-section .split-image {
    order: 0;
  }
  .factory-section .split-copy {
    order: 1;
  }
  .factory-section .split-image img {
    height: auto;
    aspect-ratio: 1.7;
  }
  .factory-benefits {
    margin-top: 20px;
    gap: 12px;
  }
  .factory-benefits .feature,
  .factory-benefits .feature:first-child {
    padding: 12px 14px;
    gap: 14px;
  }
  .factory-benefits .feature-icon {
    width: 42px;
    height: 42px;
    background: #fff3e4;
    color: var(--red);
  }
  .factory-benefits .feature-icon .icon {
    width: 26px;
    height: 26px;
  }
  .factory-benefits .feature h3 {
    font-size: 13px;
  }
  .factory-benefits .feature p {
    font-size: 11px;
  }
  .partnership-section {
    padding-block: 28px 32px;
    background: var(--cool);
  }
  .partnership-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .partnership-copy {
    max-width: none;
  }
  .partnership-copy .section-title {
    font-size: 27px;
    margin-bottom: 10px;
  }
  .partnership-copy p:not(.eyebrow) {
    font-size: 13px;
  }
  .partnership-inner > .button-row {
    max-width: none;
    margin: 0;
    flex-direction: column;
    gap: 12px;
  }
  .partnership-inner .button {
    width: 100%;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .partnership-image {
    position: static;
    mask-image: none;
    aspect-ratio: 1.7;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 4px;
  }
  .partnership-image img {
    object-position: center;
  }
  .legacy-products .section-title {
    font-size: 24px;
  }
  .legacy-editorial .prose {
    font-size: 14px;
  }
  .legacy-editorial {
    padding-top: 26px;
  }
  .legacy-editorial h2 {
    font-size: 24px;
  }
  .legacy-editorial h3 {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .hero-description,
  .split-copy > p:not(.eyebrow),
  .partnership-copy p:not(.eyebrow),
  .legacy-editorial .prose {
    font-size: 16px;
  }
  .hero .button {
    font-size: 12px;
    padding-inline: 10px;
  }
  .factory-benefits .feature p,
  .stats-section .feature p {
    font-size: 13px;
  }
  .category-card p {
    font-size: 14px;
  }
  .hero > .carousel-dots {
    margin-top: 0;
  }
  .hero-title {
    letter-spacing: -0.03em;
  }
}

.legacy-editorial .carousel-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.legacy-editorial .carousel-item {
  display: block;
}
.legacy-editorial .carousel-control-prev,
.legacy-editorial .carousel-control-next,
.legacy-editorial .carousel-indicators {
  display: none;
}
.legacy-editorial .carousel-inner img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}
.legacy-editorial img[src$="1f3fa.png"] {
  display: inline;
  width: 20px;
  height: 20px;
  margin: 0 8px 0 0;
}

.hero-image picture,
.partnership-image picture {
  display: block;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.91) 0,
    rgba(255, 255, 255, 0.7) 30%,
    transparent 62%
  );
}
@media (max-width: 767px) {
  .hero-image::after {
    display: none;
  }
}
