/*
  StarCore editorial refresh
  This layer intentionally reshapes the original component system while
  preserving the site's bilingual behavior and interaction logic.
*/

:root {
  --navy-950: #102b2e;
  --navy-900: #14373a;
  --navy-800: #1d4647;
  --teal-600: #1e6d68;
  --teal-500: #2a817a;
  --gold-500: #b8892f;
  --gold-400: #cda24e;
  --cream-100: #eee6da;
  --cream-50: #f7f3ec;
  --sand-200: #ded1c0;
  --sand-100: #e9dfd2;
  --ink: #102b2e;
  --muted: #687272;
  --white: #fffdf9;
  --line: rgba(16, 43, 46, 0.16);
  --shadow: 0 22px 64px rgba(16, 43, 46, 0.13);
  --shadow-soft: 0 12px 36px rgba(16, 43, 46, 0.08);
  --radius-xl: 10px;
  --radius-lg: 6px;
  --radius-md: 4px;
  --container: 1260px;
  --header-height: 76px;
}

body {
  background: var(--cream-50);
  letter-spacing: -0.005em;
}

.container {
  width: min(calc(100% - 64px), var(--container));
}

.section {
  padding: 128px 0;
}

.eyebrow {
  margin-bottom: 21px;
  color: var(--gold-500);
  font-size: 0.68rem;
  letter-spacing: 0.19em;
}

.eyebrow-dark {
  color: var(--teal-600);
}

html:not([data-language="zh"]) .hero-copy h1,
html:not([data-language="zh"]) .section-heading h2,
html:not([data-language="zh"]) .about-copy h2,
html:not([data-language="zh"]) .contact-copy h2,
html:not([data-language="zh"]) .download-inner h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.section-heading h2 {
  max-width: 820px;
  font-size: clamp(2.7rem, 4.3vw, 4.75rem);
  line-height: 1.01;
  letter-spacing: -0.048em;
}

.button {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 3px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.button-small {
  min-height: 42px;
  padding: 11px 17px;
  font-size: 0.67rem;
}

.button-gold {
  color: #fffdf9;
  background: var(--gold-500);
  box-shadow: none;
}

.button-gold:hover {
  color: #fffdf9;
  background: #9f7223;
  box-shadow: none;
}

.button-ghost {
  color: var(--ink);
  border-color: rgba(16, 43, 46, 0.34);
  background: transparent;
}

.button-ghost:hover {
  border-color: var(--ink);
  background: rgba(16, 43, 46, 0.05);
}

.button-navy {
  border-color: var(--navy-950);
  background: var(--navy-950);
}

.text-link {
  gap: 12px;
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Light, quieter navigation lets the product photography lead. */
.site-header {
  height: var(--header-height);
  border-bottom: 1px solid rgba(16, 43, 46, 0.12);
  background: rgba(247, 243, 236, 0.94);
  box-shadow: 0 6px 26px rgba(16, 43, 46, 0.04);
}

.header-inner {
  gap: 44px;
}

.brand img {
  width: 174px;
}

.primary-nav {
  gap: 33px;
}

.primary-nav a {
  color: rgba(16, 43, 46, 0.7);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.primary-nav a:hover {
  color: var(--ink);
}

.primary-nav a::after {
  bottom: -10px;
  height: 1px;
  background: var(--gold-500);
}

.language-switcher {
  padding: 2px;
  border-color: rgba(16, 43, 46, 0.18);
  background: rgba(16, 43, 46, 0.035);
  border-radius: 3px;
}

.language-button {
  min-width: 36px;
  color: rgba(16, 43, 46, 0.56);
  border-radius: 2px;
}

.language-button.is-active {
  color: var(--white);
  background: var(--navy-950);
}

.menu-toggle {
  border-color: rgba(16, 43, 46, 0.26);
  color: var(--ink);
  border-radius: 3px;
}

/* Editorial hero: open, product-led and deliberately asymmetric. */
.hero {
  min-height: auto;
  padding: 82px 0 34px;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(16, 43, 46, 0.055) 49.8% 50%, transparent 50%),
    var(--cream-50);
}

.hero::before {
  position: absolute;
  top: 55px;
  left: max(32px, calc((100% - var(--container)) / 2));
  width: 38px;
  height: 3px;
  background: var(--gold-500);
  content: "";
}

.hero::after {
  right: -170px;
  bottom: -230px;
  width: 560px;
  height: 560px;
  border-color: rgba(16, 43, 46, 0.08);
}

.hero-pattern {
  opacity: 0.26;
  background-image: radial-gradient(rgba(16, 43, 46, 0.18) 0.7px, transparent 0.7px);
  background-position: 0 0;
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 52%, #000);
  mask-image: linear-gradient(to right, transparent, #000 52%, #000);
}

.hero-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(530px, 1.18fr);
  gap: 86px;
}

.hero-copy {
  padding: 22px 0 54px;
}

.hero-copy h1 {
  max-width: 620px;
  font-size: clamp(4.4rem, 6.65vw, 7.35rem);
  line-height: 0.88;
  letter-spacing: -0.073em;
}

.hero-copy h1 span {
  color: var(--gold-500);
  font-style: italic;
}

html[data-language="zh"] .hero-copy h1 span {
  font-style: normal;
}

/* Chinese needs its own measure and rhythm; the English display scale is too aggressive. */
html[data-language="zh"] .hero-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(500px, 1.04fr);
  gap: 64px;
}

html[data-language="zh"] .hero-copy h1 {
  max-width: 700px;
  font-size: clamp(3.2rem, 4.2vw, 4.2rem);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.hero-lead {
  max-width: 535px;
  margin-top: 34px;
  color: rgba(16, 43, 46, 0.67);
  font-size: 1.04rem;
}

.hero-actions {
  margin-top: 37px;
}

.hero-proof {
  gap: 0;
  margin-top: 37px;
}

.hero-proof span {
  padding: 0 17px;
  border: 0;
  border-left: 1px solid rgba(16, 43, 46, 0.22);
  color: rgba(16, 43, 46, 0.62);
  background: transparent;
  border-radius: 0;
  font-size: 0.68rem;
}

.hero-proof span:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-visual {
  min-height: 650px;
}

.hero-frame {
  border: 0;
  box-shadow: 0 22px 60px rgba(16, 43, 46, 0.16);
}

.hero-frame-main {
  top: 0;
  right: 0;
  width: 76%;
  aspect-ratio: 0.87;
  padding: 0;
  background: var(--sand-100);
  border-radius: 2px;
}

.hero-frame-main img {
  border-radius: 0;
}

.hero-frame-small {
  width: 37%;
  padding: 8px;
  border: 1px solid rgba(16, 43, 46, 0.16);
  background: var(--white);
  border-radius: 2px;
  box-shadow: 0 16px 46px rgba(16, 43, 46, 0.15);
}

.hero-frame-small img {
  border-radius: 0;
}

.hero-frame-camel {
  left: 1%;
  bottom: 32px;
  transform: none;
}

.hero-frame-tray {
  right: -4%;
  bottom: -16px;
  width: 29%;
  transform: none;
}

.hero-note {
  top: 42px;
  left: 4%;
  width: 168px;
  gap: 10px;
  padding: 11px 13px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 2px;
  box-shadow: none;
  transform: none;
}

.hero-note-number {
  color: var(--gold-400);
}

.hero-metrics {
  margin-top: 64px;
  border-top-color: rgba(16, 43, 46, 0.18);
}

.hero-metrics > div {
  padding-top: 25px;
  border-left-color: rgba(16, 43, 46, 0.16);
}

.hero-metrics strong {
  color: var(--gold-500);
}

.hero-metrics span {
  color: rgba(16, 43, 46, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Statement section */
.intro {
  background: var(--white);
}

.intro-grid {
  grid-template-columns: 1.12fr 0.6fr;
  gap: 120px;
}

.intro-copy {
  padding-top: 42px;
}

.intro-copy p {
  color: rgba(16, 43, 46, 0.64);
  font-size: 0.96rem;
}

/* Product gallery: fewer boxes, more image and varied editorial rhythm. */
.products-section {
  background: var(--cream-50);
}

.products-header {
  align-items: flex-end;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.products-header .section-heading > p:last-child {
  max-width: 600px;
}

.product-filters {
  gap: 2px;
}

.filter-button {
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid transparent;
  color: rgba(16, 43, 46, 0.54);
  background: transparent;
  border-radius: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--gold-500);
  color: var(--ink);
  background: transparent;
}

.product-grid {
  margin-top: 48px;
  gap: 54px 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.product-card:hover {
  transform: none;
  box-shadow: none;
}

.product-card:first-child {
  grid-column: span 2;
}

.product-image-wrap {
  aspect-ratio: 1.08;
  border-radius: 2px;
}

.product-card:first-child .product-image-wrap {
  aspect-ratio: 2.19;
}

.product-image-wrap::after {
  height: 100%;
  background: linear-gradient(180deg, rgba(16, 43, 46, 0.02), rgba(16, 43, 46, 0.11));
  opacity: 1;
}

.product-image-wrap img {
  transition-duration: 700ms;
}

.product-card[data-product="03"] .product-image-wrap img,
.product-card[data-product="05"] .product-image-wrap img,
.product-card[data-product="08"] .product-image-wrap img,
.product-card[data-product="09"] .product-image-wrap img,
.product-card[data-product="13"] .product-image-wrap img {
  padding: 22px;
}

.product-number {
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  color: var(--white);
  background: rgba(16, 43, 46, 0.86);
  border-radius: 2px;
  font-size: 0.61rem;
  letter-spacing: 0.09em;
}

.product-card-content {
  padding: 20px 2px 0;
}

.product-category {
  margin-bottom: 7px;
  color: var(--gold-500);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.product-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.product-card-description {
  margin-top: 10px;
  color: rgba(16, 43, 46, 0.62);
  font-size: 0.82rem;
  -webkit-line-clamp: 2;
}

.product-card-footer {
  margin-top: 17px;
  padding-top: 13px;
}

.product-details-button {
  color: var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

/* Capabilities become a quieter, architectural band. */
.capabilities {
  background: var(--navy-950);
}

.capabilities::before {
  top: -130px;
  left: auto;
  right: -130px;
  width: 420px;
  height: 420px;
  border-color: rgba(205, 162, 78, 0.13);
}

.capabilities-top {
  grid-template-columns: 1fr 0.48fr;
  gap: 110px;
}

.capability-grid {
  margin-top: 72px;
  border: 0;
  gap: 34px;
}

.capability-card {
  min-height: 252px;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.capability-card:hover {
  background: transparent;
}

.capability-number {
  display: block;
  width: auto;
  height: auto;
  color: var(--gold-400);
  background: transparent;
  border-radius: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}

.capability-card h3 {
  margin: 33px 0 12px;
  font-size: 1.12rem;
}

.palette-panel {
  margin-top: 30px;
  padding: 31px 0;
  border-width: 1px 0 0;
  background: transparent;
  border-radius: 0;
}

.palette-swatches {
  grid-template-columns: repeat(6, 30px);
}

.palette-swatches span {
  width: 30px;
  height: 30px;
  border-width: 1px;
  border-radius: 2px;
}

/* Clear project process without the brochure-like arch treatment. */
.process {
  background: var(--white);
}

.process-grid {
  grid-template-columns: 0.94fr 1fr;
  gap: 110px;
}

.process-visual {
  min-height: 680px;
  padding: 0;
  border: 0;
  background: var(--sand-100);
  border-radius: 2px;
}

.process-visual img {
  height: 680px;
  border-radius: 0;
}

.process-caption {
  right: 0;
  bottom: 0;
  left: auto;
  width: 62%;
  padding: 18px 21px;
  color: var(--white);
  background: rgba(16, 43, 46, 0.94);
  border-radius: 0;
  text-align: left;
}

.process-list {
  margin-top: 46px;
}

.process-list li {
  padding: 22px 0;
  grid-template-columns: 42px 1fr;
  gap: 18px;
}

.process-list li > span {
  width: auto;
  height: auto;
  place-items: start;
  color: var(--gold-500);
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

/* Company story */
.about {
  background: #183a3c;
}

.about-pattern {
  opacity: 0.13;
}

.about-grid {
  grid-template-columns: 1fr 0.66fr;
  gap: 120px;
}

.about-copy h2 {
  font-size: clamp(2.8rem, 4.4vw, 4.9rem);
  line-height: 1;
}

.about-visual {
  padding: 0;
  border: 0;
  border-radius: 2px;
}

.about-visual img {
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.about-seal {
  right: -34px;
  top: 24px;
  bottom: auto;
  width: 132px;
  height: 132px;
  color: var(--white);
  background: var(--gold-500);
  border: 8px solid #183a3c;
  transform: none;
}

.download-band {
  padding: 62px 0;
  color: var(--ink);
  background: #cda24e;
}

.download-inner h2 {
  font-size: clamp(2.4rem, 3.7vw, 4rem);
}

.download-inner .eyebrow {
  color: rgba(16, 43, 46, 0.68);
}

.download-inner p:last-child {
  color: rgba(16, 43, 46, 0.66);
}

.download-band .button-gold {
  color: var(--white);
  background: var(--navy-950);
}

.download-band .button-ghost {
  color: var(--ink);
  border-color: rgba(16, 43, 46, 0.46);
}

/* Conversion area */
.contact {
  background: var(--cream-50);
}

.contact-grid {
  grid-template-columns: 0.78fr 1fr;
  gap: 120px;
}

.contact-copy h2 {
  font-size: clamp(3rem, 4.5vw, 5rem);
  line-height: 0.98;
}

.contact-details > div {
  padding: 15px 0;
  grid-template-columns: 130px 1fr;
}

.contact-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--teal-600);
}

.contact-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inquiry-form {
  padding: 42px;
  border: 1px solid rgba(16, 43, 46, 0.15);
  background: var(--white);
  border-radius: 2px;
  box-shadow: none;
}

.inquiry-form input,
.inquiry-form textarea {
  border-width: 0 0 1px;
  background: transparent;
  border-radius: 0;
}

.inquiry-form input {
  padding: 0 2px;
}

.inquiry-form textarea {
  padding: 13px 2px;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  background: transparent;
  box-shadow: 0 2px 0 var(--teal-600);
}

.site-footer {
  padding-top: 52px;
  background: #0d2729;
}

.footer-links {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
}

.footer-social {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.footer-social:hover {
  color: var(--gold-400);
}

.footer-top {
  padding-bottom: 38px;
}

.back-to-top {
  width: 43px;
  height: 43px;
  color: var(--white);
  background: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
}

.product-dialog {
  border-radius: 3px;
}

.dialog-close {
  border-radius: 2px;
}

@media (max-width: 1120px) {
  .header-inner {
    gap: 22px;
  }

  .primary-nav {
    gap: 19px;
  }

  .hero-grid {
    grid-template-columns: 0.88fr 1.12fr;
    gap: 48px;
  }

  .hero-visual {
    min-height: 590px;
  }

  .contact-grid,
  .about-grid,
  .process-grid {
    gap: 72px;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .section {
    padding: 96px 0;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    padding: 24px 20px 40px;
    gap: 0;
    overflow-y: auto;
    background: #f7f3ec;
    border-top: 1px solid rgba(16, 43, 46, 0.12);
    box-shadow: 0 22px 40px rgba(16, 43, 46, 0.12);
    visibility: hidden;
  }

  .primary-nav a {
    display: flex;
    width: 100%;
    min-height: 64px;
    align-items: center;
    padding: 14px 4px;
    color: var(--ink);
    border-bottom: 1px solid rgba(16, 43, 46, 0.14);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
  }

  .primary-nav a::after {
    display: none;
  }

  .primary-nav a:last-child {
    justify-content: center;
    margin-top: 20px;
    color: var(--white);
    background: var(--gold-500);
    border-bottom: 0;
  }

  .primary-nav.is-open {
    visibility: visible;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  html[data-language="zh"] .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    min-height: 630px;
  }

  .intro-grid,
  .capabilities-top,
  .process-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 62px;
  }

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

  .product-card:first-child {
    grid-column: span 2;
  }

  .capability-grid {
    gap: 28px;
  }

  .process-visual {
    width: 100%;
    min-height: 560px;
  }

  .process-visual img {
    height: 560px;
  }

  .about-copy {
    order: 1;
  }

  .about-visual {
    order: 2;
    width: min(76%, 520px);
  }

  .footer-links {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 78px 0;
  }

  .brand img {
    width: 143px;
  }

  .hero {
    padding: 54px 0 26px;
  }

  .hero::before {
    top: 34px;
    left: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(3.55rem, 17vw, 5rem);
  }

  html[data-language="zh"] .hero-copy h1 {
    font-size: clamp(2.45rem, 10.4vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.045em;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px 0;
  }

  .hero-proof span:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .hero-visual {
    min-height: 465px;
  }

  .hero-frame-main {
    width: 83%;
  }

  .hero-frame-small {
    width: 41%;
  }

  .hero-frame-tray {
    width: 33%;
  }

  .hero-note {
    top: 26px;
    width: 148px;
  }

  .hero-metrics {
    margin-top: 42px;
  }

  .hero-metrics > div,
  .hero-metrics > div:nth-child(3) {
    padding: 16px 0;
    border-top-color: rgba(16, 43, 46, 0.12);
  }

  .hero-actions .button,
  .download-actions .button {
    width: 100%;
  }

  .section-heading h2 {
    font-size: clamp(2.6rem, 13vw, 3.8rem);
  }

  .products-header {
    padding-bottom: 26px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .product-card:first-child {
    grid-column: auto;
  }

  .product-card:first-child .product-image-wrap,
  .product-image-wrap {
    aspect-ratio: 1.08;
  }

  .capability-grid {
    gap: 0;
    border: 0;
  }

  .capability-card {
    min-height: 0;
    padding: 27px 0 34px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .palette-panel {
    padding: 28px 0 0;
  }

  .palette-swatches {
    grid-template-columns: repeat(6, 28px);
    gap: 8px;
  }

  .palette-swatches span {
    width: 28px;
    height: 28px;
  }

  .process-visual {
    min-height: 470px;
    padding: 0;
  }

  .process-visual img {
    height: 470px;
  }

  .process-caption {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
  }

  .about-visual {
    width: 88%;
  }

  .about-seal {
    right: -20px;
    width: 112px;
    height: 112px;
    border-width: 6px;
  }

  .download-band {
    padding: 52px 0;
  }

  .contact-details > div {
    grid-template-columns: 1fr;
  }

  .inquiry-form {
    padding: 28px 22px;
  }
}
