/* ============================================================
   CHINIFY — Homepage v2
   ============================================================ */

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: 20px var(--gutter);
  transition: background 380ms var(--ease-out), padding 380ms var(--ease-out);
}
.nav.scrolled {
  background: rgba(250,250,248,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 14px;
  border-bottom: var(--rule);
}

/* Col 1: Logo (left) */
.nav__logo {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav__logo-mark svg, .nav__logo-mark img, .nav__logo-img { width: 32px; height: 32px; object-fit: contain; }
.nav__logo-text {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--white);
  transition: color 380ms var(--ease-out);
}
.nav.scrolled .nav__logo-text { color: var(--text-primary); }

/* Col 2: Links (center) */
.nav__links {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(12px, 2vw, 32px);
  list-style: none; padding: 0; margin: 0;
}

/* Col 3: Lang + hamburger (right) */
.nav__right {
  display: flex; align-items: center; gap: 16px;
  justify-content: flex-end;
}
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--white);
  transition: color 380ms var(--ease-out);
}
.lang-btn svg { width: 18px; height: 18px; border-radius: 2px; }
.nav.scrolled .lang-btn { color: var(--text-primary); }
.lang-btn span { font-size: 10px; opacity: 0.7; }
.nav__link {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  color: rgba(250,250,248,0.82);
  transition: color 280ms;
  white-space: nowrap;
}
.nav__link:hover { color: var(--white); }
.nav.scrolled .nav__link { color: var(--text-secondary); }
.nav.scrolled .nav__link:hover { color: var(--text-primary); }
.nav__link--active { color: var(--accent) !important; }

/* Mobile hamburger */
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px; margin-inline-start: 16px;
}
.nav__hamburger span {
  display: block; width: 20px; height: 1px;
  background: var(--white);
  transition: all 300ms var(--ease-out);
}
.nav.scrolled .nav__hamburger span { background: var(--text-primary); }
.nav__hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0;
  width: min(300px, 80vw);
  background: var(--bg); z-index: 99;
  padding: 80px 36px 40px;
  transform: translateX(100%);
  transition: transform 400ms var(--ease-out);
  display: flex; flex-direction: column; gap: 2px;
}
.nav__drawer.open { transform: none; }
.nav__drawer a {
  font-family: var(--font-display); font-size: 28px;
  padding-block: 12px; border-bottom: var(--rule);
  transition: color 200ms;
}
.nav__drawer a:hover { color: var(--accent); }
.nav__overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 98;
  opacity: 0; pointer-events: none;
  transition: opacity 400ms var(--ease-out);
}
.nav__overlay.open { opacity: 1; pointer-events: all; }

@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  overflow: hidden; background: var(--dark-2);
  display: flex; align-items: flex-start;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: kbz 16s ease-out forwards;
}
@keyframes kbz {
  to { transform: scale(1); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(20,18,16,0.72) 0%, rgba(20,18,16,0.15) 55%, transparent 100%),
    linear-gradient(to top, rgba(20,18,16,0.5) 0%, transparent 40%);
}
.hero__content {
  position: relative; z-index: 2;
  padding: clamp(100px, 14vh, 160px) var(--gutter) 0;
  width: 100%;
  max-width: calc(var(--container-max) + var(--gutter) * 2);
  margin-inline: auto;
}
.hero__eyebrow {
  margin-block-end: 20px;
  animation: fu 600ms 200ms var(--ease-out) both;
}
.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 640px;
  margin-block-end: 24px;
  animation: fu 600ms 320ms var(--ease-out) both;
}
.hero__h1 em { font-style: italic; display: block; }
.hero__sub {
  font-size: clamp(14px, 1.3vw, 17px);
  color: rgba(250,250,248,0.7);
  max-width: 420px;
  margin-block-end: 36px;
  animation: fu 600ms 440ms var(--ease-out) both;
}
.hero__ctas {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fu 600ms 540ms var(--ease-out) both;
}

/* Social proof strip inside hero */
.hero__brands {
  position: absolute; bottom: 0; inset-inline: 0; z-index: 2;
  border-top: var(--rule-light);
  background: rgba(20,18,16,0.45);
  backdrop-filter: blur(8px);
  padding: 18px var(--gutter);
  display: flex; align-items: center; gap: clamp(24px, 4vw, 56px);
  overflow-x: auto; scrollbar-width: none;
  animation: fu 600ms 700ms var(--ease-out) both;
}
.hero__brands::-webkit-scrollbar { display: none; }
.hero__brands-label {
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(250,250,248,0.45);
  white-space: nowrap; flex-shrink: 0;
}
.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.1em;
  color: rgba(250,250,248,0.55);
  white-space: nowrap; flex-shrink: 0;
  font-style: italic;
  transition: color 280ms;
}
.hero__brand:hover { color: rgba(250,250,248,0.9); }

@keyframes fu {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--dark);
  padding-block: clamp(28px, 3vw, 40px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-bar__inner {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.stat-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 0 clamp(16px, 3vw, 48px);
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-item__num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400; line-height: 1;
  color: var(--accent);
}
.stat-item__label {
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.45);
}

@media (max-width: 600px) {
  .stats-bar__inner { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-right: none; padding-block: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
}

/* ── Furniture For Every Field ───────────────────────────── */
.every-field, .every-field.section { padding-block-start: var(--section-gap); padding-block-end: 0; }
.every-field__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  margin-block-end: clamp(40px, 5vw, 64px);
}
.every-field__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
@media (max-width: 900px) {
  .every-field__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .every-field__grid { grid-template-columns: 1fr; }
}
.field-card {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--dark-2);
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.field-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.field-card:hover .field-card__img { transform: scale(1.05); }
.field-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,18,16,0.75) 0%, transparent 50%);
}
.field-card__label {
  position: absolute; bottom: 0; inset-inline: 0;
  padding: 28px 22px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400; color: var(--white);
}

/* ── For Developer / For Designer split ──────────────────── */
.audience-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
@media (max-width: 700px) {
  .audience-split { grid-template-columns: 1fr; }
}
.audience-card {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  display: flex; align-items: flex-end;
  background: var(--dark-2); text-decoration: none;
}
.audience-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.audience-card:hover .audience-card__img { transform: scale(1.04); }
.audience-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,18,16,0.8) 0%, rgba(20,18,16,0.2) 60%, transparent 100%);
  transition: background 400ms var(--ease-out);
}
.audience-card:hover .audience-card__overlay {
  background: linear-gradient(to top, rgba(20,18,16,0.88) 0%, rgba(20,18,16,0.35) 60%, transparent 100%);
}
.audience-card__content {
  position: relative; z-index: 2;
  padding: clamp(28px, 4vw, 56px);
}
.audience-card__eyebrow {
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--white);
  margin-block-end: 14px;
  padding-left: 20px;
  position: relative;
}
.audience-card__eyebrow::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 2px; background: var(--accent);
}
.audience-card__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400; color: var(--white);
  line-height: 1.1;
  margin-block-end: 10px;
}
.audience-card__sub {
  font-size: 13px;
  color: rgba(250,250,248,0.65);
  max-width: 320px;
  margin-block-end: 24px;
  line-height: 1.55;
}
.audience-card .btn-arrow { color: var(--white); }

/* ── How We Deliver ──────────────────────────────────────── */
.how-deliver { padding-block: var(--section-gap); }
.how-deliver__header {
  text-align: center; max-width: 600px;
  margin-inline: auto; margin-block-end: clamp(48px, 6vw, 80px);
}
.how-deliver__header .h2 { margin-block: 12px; }
.how-deliver__header p { color: var(--text-secondary); }

.deliver-carousel {
  position: relative; overflow: hidden;
}
.deliver-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.deliver-step {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; background: var(--dark-2);
}
.deliver-step__img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.6;
  transition: opacity 400ms, transform 700ms var(--ease-out);
}
.deliver-step:hover .deliver-step__img {
  opacity: 0.8; transform: scale(1.03);
}
.deliver-step__content {
  position: absolute; inset: 0;
  padding: clamp(20px, 3vw, 36px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(20,18,16,0.85) 0%, transparent 55%);
}
.deliver-step__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400; color: rgba(250,250,248,0.15);
  line-height: 1; margin-block-end: 8px;
  position: absolute; top: clamp(16px, 2vw, 28px); left: clamp(20px, 3vw, 36px);
}
.deliver-step__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400; color: var(--white);
  margin-block-end: 8px;
}
.deliver-step__desc {
  font-size: 12px; color: rgba(250,250,248,0.6); line-height: 1.55;
}

@media (max-width: 900px) {
  .deliver-track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .deliver-track { grid-template-columns: 1fr; }
  .deliver-step { aspect-ratio: 16/9; }
}

/* ── Catalog strip ───────────────────────────────────────── */
.catalog-strip { padding-block: var(--section-gap); background: var(--surface); }
.catalog-strip__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-block-end: clamp(32px, 4vw, 56px);
}
.catalog-strip__head .h2 { max-width: 500px; }
.catalog-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
}
@media (max-width: 900px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .catalog-grid { grid-template-columns: 1fr; } }
.catalog-card {
  background: var(--bg);
  text-decoration: none; color: inherit;
}
.catalog-card__img {
  aspect-ratio: 1; overflow: hidden; background: var(--surface-2);
}
.catalog-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.catalog-card:hover .catalog-card__img img { transform: scale(1.05); }
.catalog-card__info { padding: 16px 12px; }
.catalog-card__name {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 400;
}

/* ── Manufacturing ───────────────────────────────────────── */
.manufacturing {
  position: relative; overflow: hidden;
  min-height: clamp(480px, 60vh, 700px);
  display: flex; align-items: center;
  background: var(--dark-2);
}
.manufacturing__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: 0.45;
}
.manufacturing__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(20,18,16,0.85) 0%, rgba(20,18,16,0.4) 60%, transparent 100%);
}
.manufacturing__content {
  position: relative; z-index: 2;
  max-width: 560px;
  padding: var(--section-gap) var(--gutter);
}
.manufacturing__content .h2 {
  color: var(--white); margin-block: 16px 20px;
}
.manufacturing__content p {
  color: rgba(250,250,248,0.65); margin-block-end: 32px;
  font-size: clamp(14px, 1.2vw, 16px); line-height: 1.7;
}

/* ── Recent Work ─────────────────────────────────────────── */
.recent-work { padding-block: var(--section-gap); }
.recent-work__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  margin-block-end: clamp(40px, 5vw, 64px);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; background: var(--dark-2);
}
.work-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.work-card:hover .work-card__img { transform: scale(1.04); }
.work-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,18,16,0.7) 0%, transparent 50%);
}
.work-card__label {
  position: absolute; bottom: 0; inset-inline: 0;
  padding: 20px 18px;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--white);
}

/* ── Brand logos ─────────────────────────────────────────── */
.brand-logos {
  padding-block: clamp(40px, 5vw, 64px);
  background: var(--surface);
  border-block: var(--rule);
}
.brand-logos__label {
  text-align: center; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-block-end: 28px;
}
.brand-logos__row {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(28px, 5vw, 72px); flex-wrap: wrap;
}
.brand-logos__item {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.3vw, 16px);
  letter-spacing: 0.1em; font-style: italic;
  color: var(--text-muted);
  transition: color 280ms;
}
.brand-logos__item:hover { color: var(--text-primary); }

/* ── CTA strip ───────────────────────────────────────────── */
.cta-strip {
  background: var(--dark);
  padding-block: clamp(72px, 10vw, 120px);
  text-align: center;
}
.cta-strip .h2 {
  color: var(--white);
  max-width: 640px; margin-inline: auto;
  margin-block-end: 40px;
}
.cta-strip__btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* Contact buttons */
.contact-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border: 1px solid rgba(250,250,248,0.25);
  color: var(--white);
  font-family: var(--font-body); font-size: 12px;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 280ms var(--ease-out);
  text-decoration: none;
}
.contact-btn:hover {
  background: var(--white); color: var(--dark);
  border-color: var(--white);
}
.contact-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(250,250,248,0.08);
}
.footer__top {
  padding-block: clamp(40px, 6vw, 72px);
  display: flex; justify-content: center; align-items: center;
  gap: 12px; flex-direction: column;
  border-bottom: 1px solid rgba(250,250,248,0.08);
}
.footer__grid {
  padding-block: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__col-title {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(250,250,248,0.35); margin-block-end: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  font-size: 14px; color: rgba(250,250,248,0.6);
  text-decoration: none; transition: color 200ms;
}
.footer__link:hover { color: var(--white); }
.footer__contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-block-end: 12px;
  font-size: 14px; color: rgba(250,250,248,0.6);
}
.footer__contact-item svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer__social { display: flex; gap: 12px; }
.footer__social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(250,250,248,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(250,250,248,0.6);
  transition: all 280ms var(--ease-out);
}
.footer__social-link:hover {
  background: var(--accent); border-color: var(--accent); color: var(--white);
}
.footer__social-link svg { width: 14px; height: 14px; }
.footer__bottom {
  border-top: 1px solid rgba(250,250,248,0.06);
  padding-block: 24px;
  display: flex; justify-content: center;
}
.footer__copy {
  font-size: 11px; letter-spacing: 0.1em;
  color: rgba(250,250,248,0.25);
}
