/* ============================================================
   JENNIX — Guanheng International
   Commercial fit-out design & manufacture
   ============================================================ */

:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --ink: #000000;
  --text: rgba(0, 0, 0, 0.8);
  --muted: rgba(0, 0, 0, 0.62);
  --faint: rgba(0, 0, 0, 0.4);
  --line: rgba(0, 0, 0, 0.1);
  --dark: #141414;
  --dark-2: #0f0f0f;
  --light: #ffffff;
  --light-dim: rgba(255, 255, 255, 0.7);
  --light-faint: rgba(255, 255, 255, 0.4);
  --line-light: rgba(255, 255, 255, 0.14);

  --font-heading: "Phudu", sans-serif;
  --font-body: "Urbanist", sans-serif;

  --radius: 8px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.48px;
  text-transform: uppercase;
}

/* ============ Headings ============ */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.48px;
  text-wrap: balance;
}

h2 { font-size: clamp(40px, 5.4vw, 80px); font-weight: 700; line-height: 0.92; text-transform: uppercase; }
h2 em { color: var(--faint); }

/* ============ Eyebrow / section heads ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.92px;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: var(--light-dim); }
.eyebrow__dot {
  width: 7px; height: 7px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.6); opacity: 0.55; }
}

.section { padding-block: clamp(80px, 10vw, 150px); }
.section--tint { background: var(--surface); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: clamp(36px, 5vw, 64px);
  color: var(--muted);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 99px;
  border: 1px solid var(--ink);
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.btn svg { transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }

.btn--solid { background: var(--ink); color: var(--light); }
.btn--solid:hover { background: #333; border-color: #333; }

.btn--line { background: transparent; color: var(--ink); border-color: var(--line); padding: 13px 24px; }
.btn--line:hover { border-color: var(--ink); }

.btn--invert { background: var(--light); color: var(--ink); border-color: var(--light); }
.btn--invert:hover { background: #ddd; border-color: #ddd; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: var(--light);
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav.is-scrolled .nav__inner { padding-block: 12px; }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}
.nav__brand-mark {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: var(--light);
  color: var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  transition: background 0.4s, color 0.4s;
}
.nav.is-scrolled .nav__brand-mark { background: var(--ink); color: var(--light); }
.nav__brand-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.06em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav__brand-text sup { font-size: 9px; }
.nav__brand-text em {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font-size: 15px;
  font-weight: 600;
  position: relative;
  padding-block: 4px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.48px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 99px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav__cta:hover { background: var(--light); color: var(--ink); border-color: var(--light); }
.nav.is-scrolled .nav__cta { border-color: var(--line); }
.nav.is-scrolled .nav__cta:hover { background: var(--ink); color: var(--light); border-color: var(--ink); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px 2px;
  cursor: pointer;
}
.nav__burger span {
  width: 26px; height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

/* ============================================================
   HERO  (full-bleed image, dark overlay, light type)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
}
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.72) 100%);
}
.hero__media img {
  animation: heroZoom 2.4s var(--ease-out) forwards;
  transform: scale(1.07);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(48px, 7vh, 80px);
}

.hero__title {
  font-size: clamp(54px, 9.4vw, 130px);
  font-weight: 600;
  color: var(--light);
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: -0.48px;
  margin-top: 22px;
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span {
  display: block;
  transform: translateY(110%);
  animation: riseUp 1s var(--ease-out) forwards;
}
.hero__line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes riseUp { to { transform: translateY(0); } }

.hero__sub {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(26px, 3vw, 42px);
  flex-wrap: wrap;
}
.hero__sub p {
  max-width: 470px;
  font-size: 18px;
  color: var(--light-dim);
}

.hero__tag {
  position: absolute;
  right: var(--gutter);
  top: -44px;
  color: var(--light-dim);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: 20px;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: scroll 28s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.marquee__track i {
  font-style: normal;
  color: var(--faint);
  font-size: 18px;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about__copy p { color: var(--muted); max-width: 520px; margin-top: 22px; font-size: 17px; }
.about__copy .btn { margin-top: 30px; }

.stats {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.stats li {
  padding: 22px 18px 4px 0;
  border-right: 1px solid var(--line);
}
.stats li:last-child { border-right: 0; }
.stats strong {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  display: block;
  color: var(--ink);
}
.stats li > span {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 150px;
  line-height: 1.45;
}

.about__media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.about__img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.about__img img { transition: transform 0.8s var(--ease-out); }
.about__img:hover img { transform: scale(1.04); }
.about__img figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 99px;
  pointer-events: none;
}
.about__img--a { grid-column: 1 / 9; aspect-ratio: 3 / 4; }
.about__img--b {
  grid-column: 6 / 13;
  aspect-ratio: 3 / 4;
  margin-top: -34%;
  z-index: 2;
  border: 6px solid var(--bg);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects__title { max-width: 700px; margin-bottom: clamp(40px, 5vw, 64px); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  row-gap: clamp(36px, 4vw, 56px);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--dark);
}
.card__media img {
  transition: transform 0.9s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
  padding-top: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  transition: border-color 0.3s;
}
.card:hover .card__meta { border-bottom-color: var(--ink); }
.card__tag {
  grid-column: 1 / -1;
  color: var(--faint);
  margin-bottom: 6px;
}
.card__meta h3 {
  font-size: 24px;
  font-weight: 600;
}
.card__arrow {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}
.card:hover .card__arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--light);
  transform: rotate(45deg);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.services__intro { position: sticky; top: 110px; }
.services__intro p { color: var(--muted); margin-top: 20px; max-width: 400px; font-size: 17px; }
.services__media {
  position: relative;
  margin-top: 36px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.services__media figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 99px;
  pointer-events: none;
}

.services__list { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding-block: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.4s var(--ease-out);
}
.service::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 3px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}
.service:hover { padding-left: 20px; }
.service:hover::before { transform: scaleY(1); }

.service__num {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--faint);
  padding-top: 7px;
}
.service__body h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
}
.service__body p {
  color: var(--muted);
  font-size: 15.5px;
  margin-top: 10px;
  max-width: 480px;
}

/* ============================================================
   VALUES
   ============================================================ */
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.value {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 30px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.value:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}
.value__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--faint);
  margin-bottom: 48px;
}
.value h3 { font-size: 23px; font-weight: 600; min-height: 2.1em; }
.value p { font-size: 14.5px; color: var(--muted); margin-top: 14px; }

/* ============================================================
   CTA
   ============================================================ */
.cta__title {
  font-size: clamp(52px, 9vw, 130px);
  line-height: 0.94;
}
.cta__actions {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-2);
  color: var(--light);
  padding-top: clamp(56px, 7vw, 90px);
  border-top: 1px solid var(--line-light);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
  gap: 36px;
  padding-bottom: clamp(48px, 6vw, 72px);
}
.footer__brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: 0.04em;
}
.footer__brand sup { font-size: 12px; }
.footer__col p { color: var(--light-dim); font-size: 14.5px; margin-top: 16px; }
.footer__col a {
  display: block;
  font-size: 14.5px;
  color: var(--light-dim);
  margin-top: 12px;
  transition: color 0.25s;
}
.footer__col a:hover { color: var(--light); }
.footer__label { color: var(--light-faint); display: block; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid var(--line-light);
  color: var(--light-faint);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.is-zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__figure {
  max-width: min(1280px, 94vw);
  text-align: center;
}
.lightbox__figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 82vh;
  margin-inline: auto;
  object-fit: contain;
  border-radius: var(--radius);
  transform: scale(0.95);
  transition: transform 0.4s var(--ease-out);
}
.lightbox.is-open .lightbox__figure img { transform: scale(1); }
.lightbox__figure figcaption {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: var(--light-dim);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--light);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.lightbox__close:hover {
  background: var(--light);
  color: var(--ink);
  transform: rotate(90deg);
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__line > span { animation: none; transform: none; }
  .hero__media img { animation: none; transform: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .value h3 { min-height: 0; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(78vw, 340px);
    background: var(--dark);
    color: var(--light);
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out);
    z-index: 90;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 600;
    padding-block: 10px;
  }
  .nav__cta span { display: none; }
  .nav__cta { padding: 11px 13px; }
  .nav__burger { display: flex; z-index: 95; }
  .nav__burger.is-open span { background: var(--light); }
  .nav__burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero__tag { display: none; }

  .about__grid,
  .services__grid { grid-template-columns: 1fr; }
  .services__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .projects__grid { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; border-top: 0; }
  .stats li { border-right: 0; border-top: 1px solid var(--line); padding-block: 18px 12px; }
  .footer__grid { grid-template-columns: 1fr; }
}
