:root {
  color-scheme: light;
  --paper: #f5f5f7;
  --panel: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --gold: #a87a38;
  --blue: #0071e3;
  --deep: #111113;
  --soft: #fbfbfd;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  --topline-bg: #ffffff;
  --topline-border: rgba(0, 0, 0, 0.05);
  --header-bg: rgba(251, 251, 253, 0.82);
  --header-border: rgba(0, 0, 0, 0.08);
  --nav-color: rgba(29, 29, 31, 0.78);
  --switch-bg: rgba(255, 255, 255, 0.7);
  --switch-border: rgba(0, 0, 0, 0.08);
  --module-bg: #ffffff;
  --submodule-bg: #f5f5f7;
  --footer-bg: #f5f5f7;
  --card-inset: rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #000000;
  --panel: #161617;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #d6ad70;
  --blue: #2997ff;
  --deep: #050505;
  --soft: #1d1d1f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --topline-bg: #060607;
  --topline-border: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(22, 22, 23, 0.82);
  --header-border: rgba(255, 255, 255, 0.12);
  --nav-color: rgba(245, 245, 247, 0.78);
  --switch-bg: rgba(255, 255, 255, 0.08);
  --switch-border: rgba(255, 255, 255, 0.16);
  --module-bg: #161617;
  --submodule-bg: #242426;
  --footer-bg: #0b0b0c;
  --card-inset: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, Inter, ui-sans-serif, system-ui, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

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

.topline {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 11px clamp(18px, 5vw, 72px);
  background: var(--topline-bg);
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--topline-border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 52px;
  padding: 0 clamp(18px, 5vw, 72px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.brand img {
  width: 38px;
  height: 30px;
  object-fit: contain;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 38px);
  color: var(--nav-color);
  font-size: 12px;
  font-weight: 500;
}

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

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--switch-border);
  border-radius: 999px;
  background: var(--switch-bg);
}

.lang {
  min-width: 36px;
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.lang.active {
  background: var(--ink);
  color: var(--paper);
}

.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 30px;
  border: 1px solid var(--switch-border);
  border-radius: 999px;
  background: var(--switch-bg);
  cursor: pointer;
}

.theme-toggle-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 28%, transparent 30%),
    conic-gradient(from 0deg, #ffb340, #ffd978, #ffb340);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  transition:
    transform 220ms ease,
    background 220ms ease;
}

html[data-theme="dark"] .theme-toggle-knob {
  transform: translateX(24px);
  background:
    radial-gradient(circle at 66% 34%, var(--panel) 0 27%, transparent 29%),
    #f5f5f7;
}

.hero {
  position: relative;
  display: grid;
  align-items: start;
  justify-items: center;
  min-height: calc(100vh - 94px);
  overflow: hidden;
  overflow-anchor: none;
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 72px) clamp(44px, 7vw, 88px);
  color: #fff;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.2) 48%, rgba(0, 0, 0, 0.66)),
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.2), transparent 34%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 920px);
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .eyebrow,
.factory-film .eyebrow,
.contact .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 940px;
  margin-bottom: 14px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02;
  font-weight: 760;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.06;
  font-weight: 740;
}

.lead {
  max-width: 730px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.ghost {
  background: transparent;
  color: #2997ff;
  border-color: #2997ff;
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--paper);
}

.intro div {
  min-height: 178px;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 24px;
  background: var(--module-bg);
  text-align: center;
}

.intro div:last-child {
  border-right: 0;
}

.intro strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(25px, 3.3vw, 48px);
  line-height: 1.15;
  font-weight: 730;
}

.intro span,
.section-note,
.contact p {
  color: var(--muted);
}

.story,
.factory-film,
.craft,
.contact {
  margin: 12px;
  padding: clamp(58px, 9vw, 120px) clamp(18px, 5vw, 72px);
  border-radius: 28px;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 7vw, 94px);
  background: var(--module-bg);
}

.story-copy p,
.craft-copy p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.62;
}

.story-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 30px;
  background: transparent;
  border: 0;
}

.story-points span {
  min-height: 98px;
  padding: 20px;
  border-radius: 18px;
  background: var(--submodule-bg);
  font-weight: 650;
  line-height: 1.5;
}

.factory-film {
  display: grid;
  grid-template-columns: minmax(290px, 0.5fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: end;
  overflow-anchor: none;
  background: #000;
  color: #fff;
}

.factory-film .eyebrow,
.contact .eyebrow {
  color: rgba(255, 255, 255, 0.66);
}

.film-copy p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.film-stage {
  overflow: hidden;
  overflow-anchor: none;
  contain: layout paint;
  min-height: min(66vh, 690px);
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
}

.film-stage video {
  width: 100%;
  height: 100%;
  min-height: min(66vh, 690px);
  object-fit: cover;
}

.factory-stills {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.factory-stills img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  object-fit: cover;
}

.gallery-section {
  padding: 12px 12px clamp(50px, 7vw, 90px);
  background: var(--paper);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 0 0 16px;
}

.filter-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--module-bg);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.filter-button:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  isolation: isolate;
}

.product-card {
  position: relative;
  cursor: zoom-in;
  border-radius: 22px;
  background: var(--module-bg);
  box-shadow: inset 0 0 0 1px var(--card-inset);
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: inherit;
  background: var(--submodule-bg);
}

.product-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 260ms ease;
}

.product-card:hover img {
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    z-index: 5;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
    transform: scale(1.12);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.5vw, 28px);
  background: rgba(18, 17, 15, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-viewport {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 33.333vw;
  height: min(82vh, 820px);
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  touch-action: none;
}

.lightbox-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: 50% 50%;
  transition: transform 120ms ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox.is-touch-zooming .lightbox-image {
  transition: none;
}

@media (hover: none) and (pointer: coarse) {
  .lightbox {
    padding: 8px;
  }

  .lightbox-viewport {
    width: min(92vw, 560px);
    height: min(82dvh, 760px);
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
  }
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.craft {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(34px, 7vw, 92px);
  background: var(--module-bg);
}

.craft-list {
  display: grid;
  gap: 12px;
  background: transparent;
  border: 0;
}

.craft-list div {
  padding: 28px;
  border-radius: 20px;
  background: var(--submodule-bg);
}

.craft-list span,
.contact-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.craft-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.process-compare {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1.28fr);
  gap: clamp(22px, 4vw, 48px);
  margin-top: clamp(22px, 4vw, 48px);
  padding-top: clamp(22px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.process-heading span,
.compare-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-heading h3 {
  margin-bottom: 16px;
  font-size: clamp(27px, 3.3vw, 44px);
  line-height: 1.08;
}

.process-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.7;
}

.process-detail {
  display: grid;
  gap: 12px;
}

.fiber-visual {
  margin: 0;
  padding: clamp(14px, 2vw, 20px);
  border-radius: 24px;
  background: var(--submodule-bg);
}

.fiber-visual img {
  width: 100%;
  border-radius: 18px;
}

.fiber-visual figcaption {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compare-grid article {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 22px;
  background: var(--submodule-bg);
}

.compare-grid ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-grid li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.compare-grid li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.is-rtl .compare-grid li {
  padding-right: 18px;
  padding-left: 0;
}

.is-rtl .compare-grid li::before {
  right: 0;
  left: auto;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    var(--deep);
  color: #fff;
}

.contact p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
  background: transparent;
  border: 0;
}

.contact-card div {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-card a {
  color: #fff;
  font-size: 17px;
  font-weight: 650;
}

.gallery-message {
  grid-column: 1 / -1;
  padding: 32px;
  color: var(--muted);
  background: var(--module-bg);
  border-radius: 22px;
}

.is-rtl .hero-copy,
.is-rtl .story,
.is-rtl .factory-film,
.is-rtl .craft,
.is-rtl .contact {
  text-align: right;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: var(--footer-bg);
  border-top: 1px solid var(--header-border);
}

footer span:first-child {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.12em;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding-block: 12px;
  }

  nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
  }

  .story,
  .factory-film,
  .craft,
  .contact {
    grid-template-columns: 1fr;
  }

  .factory-stills {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .topline,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .topline {
    display: none;
  }

  .site-header {
    position: sticky;
    gap: 12px;
    padding-inline: 14px;
  }

  .brand {
    gap: 7px;
  }

  .brand img {
    width: 32px;
    height: 26px;
  }

  .header-actions {
    grid-column: 1 / -1;
    order: 2;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  nav {
    width: 100%;
  }

  nav {
    order: 3;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 24px;
  }

  .language-switcher {
    width: auto;
    justify-content: flex-end;
    gap: 1px;
    padding: 2px;
  }

  .lang {
    min-width: 28px;
    min-height: 24px;
    font-size: 10px;
  }

  .theme-toggle {
    width: 44px;
    height: 26px;
  }

  .theme-toggle-knob {
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
  }

  html[data-theme="dark"] .theme-toggle-knob {
    transform: translateX(18px);
  }

  .hero {
    min-height: 720px;
    align-items: start;
  }

  .hero-copy {
    width: min(100%, calc(100vw - 48px));
    padding-top: 28px;
  }

  .hero-copy h1,
  .hero-copy p {
    line-break: anywhere;
    word-break: break-all;
  }

  h1 {
    width: 100%;
    max-width: 7.5em;
    margin-inline: auto;
    font-size: 34px;
    line-height: 1.05;
  }

  .lead {
    width: auto;
    max-width: 16em;
    margin-inline: auto;
    font-size: 15px;
    line-height: 1.5;
  }

  .intro,
  .story-points,
  .factory-stills,
  .process-compare,
  .compare-grid,
  .fiber-visual figcaption,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .intro div {
    min-height: 132px;
  }

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

  .factory-stills img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 30px;
  }

  .hero-actions .button {
    flex: 1 1 132px;
    max-width: 170px;
  }

  .brand span {
    font-size: 14px;
  }

  .story,
  .factory-film,
  .craft,
  .contact {
    margin: 8px;
    border-radius: 22px;
  }

  .gallery-section {
    padding-inline: 8px;
  }
}
