:root {
  --ink: #111217;
  --muted: #5d6470;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #e5e1d8;
  --brand-red: #d71820;
  --pine: #245e4d;
  --gold: #b88935;
  --blue: #375a7f;
  --shadow: 0 18px 50px rgba(17, 18, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  color: #ffffff;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(17, 18, 23, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 260px;
  height: 44px;
}

.brand-text {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.brand-name {
  color: var(--brand-red);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.brand-tagline {
  color: currentColor;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.82;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transition: width 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

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

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

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 126px 48px 126px;
  color: #ffffff;
  background: #111217;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 18, 23, 0.93), rgba(17, 18, 23, 0.6) 48%, rgba(17, 18, 23, 0.18)),
    linear-gradient(180deg, rgba(17, 18, 23, 0.28), rgba(17, 18, 23, 0.7));
  z-index: 1;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  filter: saturate(0.9);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(620px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-red);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #ff6f66;
}

.hero h1,
.section h2,
.contact-section h2 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero h1 {
  font-size: 68px;
  max-width: 760px;
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--brand-red);
  color: #ffffff;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.contact-section .button-secondary {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.hero-products {
  position: absolute;
  right: 5%;
  bottom: 90px;
  z-index: 2;
  display: grid;
  grid-template-columns: 160px 300px;
  grid-template-rows: 180px 180px;
  gap: 16px;
  align-items: end;
  pointer-events: none;
}

.hero-product {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-product-large {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.hero-product-small {
  grid-column: 1;
}

.hero-footer {
  position: absolute;
  z-index: 3;
  left: 48px;
  right: 48px;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 880px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-footer div {
  min-height: 74px;
  padding: 16px 26px 0 0;
}

.hero-footer strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.hero-footer span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.section {
  padding: 96px 48px;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section h2,
.contact-section h2 {
  font-size: 44px;
}

.section-head p:not(.eyebrow),
.capability-content > p,
.culture-copy > p,
.contact-inner > p {
  margin: 18px 0 0;
  color: var(--muted);
}

.filter-tabs {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 30px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filter-tab {
  min-width: 92px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-tab.active {
  background: var(--ink);
  color: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(17, 18, 23, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card.is-hidden {
  display: none;
}

.product-card figure {
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 18px;
  background: #f4f5f5;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card div {
  min-height: 106px;
  padding: 18px 18px 20px;
}

.product-card p,
.value-card span {
  margin: 0 0 6px;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.product-card h3,
.value-card h3,
.process-list h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
}

.capability-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 56px;
  align-items: center;
  background: #ffffff;
}

.capability-media {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 18px;
  align-items: end;
}

.capability-media img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.capability-media img:first-child {
  aspect-ratio: 4 / 3;
}

.capability-media img:last-child {
  aspect-ratio: 3 / 4;
}

.process-list {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.process-list span {
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.process-list p,
.value-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.story-section {
  background: var(--paper);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.value-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.value-card:nth-child(2) span {
  color: var(--pine);
}

.value-card:nth-child(3) span {
  color: var(--blue);
}

.quote-band {
  max-width: 1180px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px auto 0;
  padding: 40px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(17, 18, 23, 0.9), rgba(17, 18, 23, 0.45)),
    url("assets/company/loho-festival.jpg") center / cover;
}

.quote-band p {
  margin: 0;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 900;
}

.quote-band span {
  font-size: 22px;
  font-weight: 800;
}

.culture-section {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
  background: #ffffff;
}

.culture-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.culture-points span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  background: var(--paper);
}

.culture-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.culture-gallery img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.culture-gallery img:first-child {
  grid-row: span 2;
}

.contact-section {
  padding: 96px 48px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(17, 18, 23, 0.94), rgba(17, 18, 23, 0.62)),
    url("assets/company/loho-channel.jpg") center / cover;
}

.contact-inner {
  width: min(720px, 100%);
}

.contact-inner > p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 48px;
  background: #ffffff;
  color: var(--muted);
}

.site-footer img {
  width: 112px;
  margin-bottom: 8px;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .site-header {
    padding: 0 28px;
  }

  .hero {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-products {
    right: 24px;
    grid-template-columns: 120px 230px;
    grid-template-rows: 145px 145px;
  }

  .hero-footer {
    left: 28px;
    right: 28px;
  }

  .section,
  .contact-section {
    padding-left: 28px;
    padding-right: 28px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .capability-section,
  .culture-section {
    grid-template-columns: 1fr;
  }

  .culture-gallery img:first-child {
    grid-row: auto;
  }
}

@media (max-width: 780px) {
  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .brand {
    width: 210px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-tagline {
    font-size: 9px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 18px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--ink);
    box-shadow: 0 18px 28px rgba(17, 18, 23, 0.08);
  }

  .site-header.menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
    padding: 104px 18px 240px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(17, 18, 23, 0.9), rgba(17, 18, 23, 0.72) 58%, rgba(17, 18, 23, 0.44));
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-products {
    right: 18px;
    bottom: 20px;
    grid-template-columns: 82px 132px;
    grid-template-rows: 86px 86px;
    gap: 10px;
  }

  .hero-footer {
    display: none;
  }

  .section,
  .contact-section {
    padding: 72px 18px;
  }

  .section-head {
    text-align: left;
  }

  .section h2,
  .contact-section h2 {
    font-size: 34px;
  }

  .filter-tabs {
    width: 100%;
  }

  .filter-tab {
    flex: 1 1 42%;
  }

  .product-grid,
  .value-grid,
  .culture-gallery {
    grid-template-columns: 1fr;
  }

  .capability-media {
    grid-template-columns: 1fr;
  }

  .quote-band {
    display: block;
    padding: 30px;
  }

  .quote-band p {
    font-size: 36px;
  }

  .quote-band span {
    display: block;
    margin-top: 10px;
  }

  .site-footer {
    display: block;
    padding: 28px 18px;
  }

  .site-footer > p {
    margin-top: 18px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-products {
    opacity: 0.86;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
