﻿/* ==========================================================================
   GOPEX — Nantong Gaopeng Building Materials
   Art direction: industrial editorial. Real material photography, deep
   charcoal surfaces, warm paper, one rust accent, hairline typography.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --paper: #f1eee6;
  --paper-2: #e7e2d6;
  --surface: #fbfaf6;
  --ink: #0f1113;
  --ink-2: #3a3f44;
  --muted: #74797f;
  --line: #d5cebd;
  --line-strong: #b3aa96;
  --accent: #b4471f;
  --accent-soft: #c8663f;
  --charcoal: #0d0f11;
  --graphite: #16191c;
  --graphite-2: #1e2226;

  --sans: "Archivo", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Plex Mono", "SFMono-Regular", Consolas, monospace;

  --shell: 1320px;
  --gutter: clamp(20px, 4.6vw, 60px);
  --section: clamp(72px, 8.6vw, 124px);
  --header-h: 77px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.55s;

  --shadow-plate: 0 18px 40px -28px rgba(15, 17, 19, 0.55);
  --shadow-hover: 0 28px 60px -32px rgba(15, 17, 19, 0.6);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Fine paper grain over the whole page. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.section--tight {
  padding-block: clamp(48px, 5.6vw, 80px);
}

.section--dark {
  background: var(--charcoal);
  color: #e9e5db;
}

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

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.section--dark .eyebrow {
  color: #93958f;
}

.display,
.h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.9rem);
  line-height: 0.97;
  letter-spacing: -0.042em;
  font-weight: 600;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(1.95rem, 3.4vw, 3.05rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.36rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.lede {
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 54ch;
}

.section--dark .lede {
  color: #a9aba5;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -16px rgba(180, 71, 31, 0.9);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: none;
}

.btn .arrow {
  transition: transform var(--dur) var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    gap var(--dur) var(--ease);
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 12px;
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 238, 230, 0.78);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.header.is-stuck {
  background: rgba(241, 238, 230, 0.96);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex: none;
}

.brand__mark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1;
}

.brand__sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  margin-inline-start: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
}

.nav__link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.015em;
  padding-block: 6px;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.lang {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 8px 11px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lang:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.header .btn {
  padding: 12px 18px;
  font-size: 11px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* --------------------------------------------------------------------------
   7. Hero — full-bleed material photography
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
  color: #f6f3ec;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  transform: scale(1.04);
  animation: heroDrift 22s var(--ease) forwards;
}

@keyframes heroDrift {
  to {
    transform: scale(1);
  }
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(8, 10, 12, 0.94) 0%,
      rgba(8, 10, 12, 0.82) 34%,
      rgba(8, 10, 12, 0.34) 62%,
      rgba(8, 10, 12, 0.12) 100%
    ),
    linear-gradient(
      to top,
      rgba(8, 10, 12, 0.9) 0%,
      rgba(8, 10, 12, 0.15) 42%,
      rgba(8, 10, 12, 0) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(56px, 9vh, 104px) clamp(22px, 3vw, 40px);
}

.hero__copy {
  max-width: 780px;
}

.hero__eyebrow {
  color: #b9b5aa;
}

.hero__eyebrow::before {
  background: var(--accent-soft);
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(2.7rem, 6.6vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 600;
  max-width: 15ch;
  text-wrap: balance;
}

.hero__lede {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.6;
  color: #cfcbc2;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero .btn {
  background: #f6f3ec;
  border-color: #f6f3ec;
  color: var(--ink);
}

.hero .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero .btn--ghost {
  background: transparent;
  color: #f6f3ec;
  border-color: rgba(246, 243, 236, 0.42);
}

.hero .btn--ghost:hover {
  background: #f6f3ec;
  border-color: #f6f3ec;
  color: var(--ink);
}

/* spec rail pinned to the bottom of the hero */
.hero__spec {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(246, 243, 236, 0.18);
  margin-top: clamp(40px, 7vh, 84px);
}

.hero__spec div {
  padding: 18px 22px 20px 22px;
  border-left: 1px solid rgba(246, 243, 236, 0.14);
}

.hero__spec div:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero__spec strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero__spec em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f918b;
}

/* Hero enter choreography */
.hero__eyebrow,
.hero__title,
.hero__lede,
.hero__actions,
.hero__spec {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.95s var(--ease) forwards;
}

.hero__eyebrow {
  animation-delay: 0.08s;
}

.hero__title {
  animation-delay: 0.18s;
}

.hero__lede {
  animation-delay: 0.3s;
}

.hero__actions {
  animation-delay: 0.4s;
}

.hero__spec {
  animation-delay: 0.52s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   8. Fact strip
   -------------------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts__item {
  padding: clamp(24px, 3.2vw, 40px) clamp(16px, 2vw, 32px);
  border-left: 1px solid var(--line);
}

.facts__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.facts__value {
  display: block;
  font-size: clamp(1.9rem, 3.1vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.facts__label {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 24ch;
}

/* --------------------------------------------------------------------------
   9. Split blocks
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5.5vw, 88px);
  align-items: start;
}

.copy > * + * {
  margin-top: 20px;
}

.copy h2 + p,
.copy .h2 + .lede {
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   10. Macro photography band
   -------------------------------------------------------------------------- */
.macro {
  position: relative;
  min-height: clamp(340px, 52vh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--graphite);
  color: #f2efe8;
}

.macro img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.55) contrast(1.08) brightness(0.72);
}

.macro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 12, 14, 0.92) 0%,
    rgba(10, 12, 14, 0.35) 45%,
    rgba(10, 12, 14, 0.1) 100%
  );
}

.macro__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(36px, 5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.macro__text {
  max-width: 46ch;
}

.macro__text p {
  margin-top: 14px;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.macro__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a9a69c;
  text-align: right;
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   11. Capabilities
   -------------------------------------------------------------------------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.capability {
  padding: clamp(28px, 3vw, 42px) clamp(20px, 2.6vw, 36px);
  border-left: 1px solid var(--line);
}

.capability:first-child {
  border-left: 0;
  padding-left: 0;
}

.capability__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.capability h3 {
  margin-top: 20px;
}

.capability p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   12. Product rows
   -------------------------------------------------------------------------- */
.products-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.products-intro {
  position: sticky;
  top: 112px;
}

.product-rows {
  border-top: 1px solid var(--line-strong);
}

.product-row {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: clamp(12px, 2vw, 26px);
  align-items: center;
  padding: clamp(20px, 2.3vw, 28px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease);
}

.product-row::before {
  content: "";
  position: absolute;
  inset: 0 -16px;
  background: var(--surface);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
}

.product-row:hover {
  padding-left: 12px;
}

.product-row:hover::before {
  opacity: 1;
}

.product-row__no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.product-row__name {
  display: block;
  font-size: clamp(1.04rem, 1.45vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.product-row__meta {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  max-width: 56ch;
}

.product-row__arrow {
  font-size: 17px;
  color: var(--muted);
  transition: transform 0.45s var(--ease), color 0.45s var(--ease);
}

.product-row--news {
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: start;
}

.product-row--thumb {
  grid-template-columns: 62px 42px minmax(0, 1fr) auto;
}

.product-row__thumb {
  display: block;
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  background: #191d21;
  overflow: hidden;
  box-shadow: var(--shadow-plate);
}

.product-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 0.6s var(--ease);
}

.product-row:hover .product-row__thumb img {
  transform: scale(1.3);
}

.product-row--news .product-row__no {
  white-space: nowrap;
  font-size: 12px;
  padding-top: 4px;
}

.product-row--news .product-row__arrow {
  padding-top: 2px;
}

.product-row:hover .product-row__arrow {
  transform: translateX(6px);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   13. Product catalogue grid
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 2.8vw, 38px) clamp(16px, 2vw, 28px);
}

.product-tile {
  display: block;
}

.product-tile__media {
  display: block;
  background: #191d21;
  overflow: hidden;
  box-shadow: var(--shadow-plate);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.product-tile__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

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

.product-tile:hover .product-tile__media img {
  transform: scale(1.04);
}

.product-tile__no {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.product-tile__name {
  display: block;
  margin-top: 7px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.product-tile__meta {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   14. Quality band
   -------------------------------------------------------------------------- */
.quality {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5.5vw, 84px);
  align-items: center;
}

.quality__media {
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}

.quality__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.9);
}

.quality__list {
  border-top: 1px solid rgba(246, 243, 236, 0.18);
}

.quality__item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(246, 243, 236, 0.18);
  font-size: 14.5px;
  line-height: 1.6;
}

.quality__item dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #85878a;
  padding-top: 4px;
}

.quality__item dd {
  margin: 0;
  color: #ddd8cd;
}

/* --------------------------------------------------------------------------
   15. News
   -------------------------------------------------------------------------- */
.article {
  max-width: 720px;
}

.article__meta {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.article__body > * + * {
  margin-top: 22px;
}

.article__body p {
  font-size: 1.03rem;
  color: var(--ink-2);
  line-height: 1.78;
}

/* --------------------------------------------------------------------------
   16. Page head
   -------------------------------------------------------------------------- */
.page-head {
  padding-block: clamp(52px, 6.6vw, 92px) clamp(30px, 3.6vw, 48px);
  border-bottom: 1px solid var(--line);
}

.page-head__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}

.page-head__title {
  margin-top: 20px;
  font-size: clamp(2.3rem, 4.8vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.042em;
  font-weight: 600;
}

.page-head__aside {
  color: var(--ink-2);
  font-size: 14.5px;
  max-width: 40ch;
  padding-bottom: 6px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

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

/* --------------------------------------------------------------------------
   17. Product detail
   -------------------------------------------------------------------------- */
.media-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  padding: clamp(20px, 3vw, 34px);
  background-color: #1a1d21;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.09) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  color: #e9e4d8;
  overflow: hidden;
}

.media-tile::after {
  content: "";
  position: absolute;
  width: 46%;
  height: 46%;
  right: -10%;
  bottom: -10%;
  border: 1px solid rgba(180, 71, 31, 0.55);
  transform: rotate(45deg);
}

.media-tile__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #a9a59a;
}

.media-tile__name {
  position: relative;
  z-index: 1;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  max-width: 22ch;
}

.pd {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.pd__media {
  position: sticky;
  top: 108px;
  background: #191d21;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(15, 17, 19, 0.55);
}

.pd__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pd__body > * + * {
  margin-top: 26px;
}

.pd__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.specs caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
}

.specs th,
.specs td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px 12px 0;
  text-align: left;
  vertical-align: top;
}

.specs thead th {
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.specs tbody tr:hover {
  background: var(--surface);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   18. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
}

.contact-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.contact-item__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item__value {
  margin-top: 10px;
  font-size: 1.04rem;
  line-height: 1.5;
}

.contact-item__value a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.contact-item__value a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-item__note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   19. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--graphite);
  color: #f2efe8;
  padding-block: clamp(60px, 7vw, 96px);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 100% at 80% 100%,
    #000 0%,
    transparent 72%
  );
  mask-image: radial-gradient(
    ellipse 70% 100% at 80% 100%,
    #000 0%,
    transparent 72%
  );
}

.cta-band__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.cta-band h2 {
  max-width: 18ch;
}

.cta-band p {
  margin-top: 16px;
  color: #a5a29a;
  max-width: 44ch;
  font-size: 15px;
}

.cta-band .btn {
  background: #f6f3ec;
  border-color: #f6f3ec;
  color: var(--ink);
}

.cta-band .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cta-band .btn--ghost {
  background: transparent;
  color: #f6f3ec;
  border-color: rgba(246, 243, 236, 0.4);
}

.cta-band .btn--ghost:hover {
  background: #f6f3ec;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--charcoal);
  color: #cfcbc1;
  padding-top: clamp(52px, 6vw, 84px);
}

.footer .brand__mark {
  color: #f4f1e9;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.8fr));
  gap: clamp(28px, 3.6vw, 56px);
  padding-bottom: clamp(44px, 5vw, 68px);
}

.footer__brand p {
  margin-top: 18px;
  font-size: 13.5px;
  color: #8f918b;
  max-width: 32ch;
  line-height: 1.7;
}

.footer__col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #77797c;
  font-weight: 500;
}

.footer__col ul {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}

.footer__col a:hover {
  color: var(--accent-soft);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid rgba(246, 243, 236, 0.12);
  font-size: 12px;
  color: #6f7174;
}

.footer__bottom a:hover {
  color: #cfcbc1;
}

/* --------------------------------------------------------------------------
   21. Motion
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-intro {
    position: static;
  }

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

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

@media (max-width: 900px) {
  :root {
    --header-h: 67px;
  }

  .header__inner {
    height: 66px;
  }

  .nav {
    position: fixed;
    inset: 66px 0 auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header__actions .btn {
    display: none;
  }

  .split,
  .quality,
  .pd,
  .page-head__inner {
    grid-template-columns: 1fr;
  }

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

  .hero__spec div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .hero__spec div:nth-child(n + 3) {
    padding-top: 16px;
  }

  .hero__spec strong {
    font-size: 0.94rem;
  }

  .hero__spec em {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .pd__media {
    position: static;
  }

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

  .facts__item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .facts__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .capabilities {
    grid-template-columns: 1fr;
  }

  .capability {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .capability:first-child {
    border-top: 0;
  }

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

  .quality__item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .macro__meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .brand__sub {
    display: none;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
  }

  .hero__title {
    font-size: clamp(2.2rem, 9vw, 3rem);
    max-width: 12ch;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

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

  .product-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .product-row--news {
    grid-template-columns: max-content minmax(0, 1fr) auto;
  }

  .product-row--thumb {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .product-row--thumb .product-row__no {
    display: none;
  }

  .product-row__thumb {
    width: 48px;
    height: 48px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}
