/* =========================================================================
   Zhenova Laboratories — public website
   Breakpoints (from the design): compact ≤ 1024px, mobile ≤ 680px.
   Fluid sizes use `cqw` against the .page container (= page width).
   ========================================================================= */

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/DMSans-Variable.ttf') format('truetype');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --navy: #0c1f3d;
  --navy-deep: #0a1a33;
  --ink: #0f1f3d;
  --ink-on-mint: #0a1d33;
  --body: #3c4859;
  --muted: #a9b5c7;
  --mint: #22e3a3;
  --teal: #11737b;
  --teal-icon: #1a8a8f;
  --teal-link: #0e8078;
  --line: #e2e7ee;
  --field: #d3dae3;
  --hero-bg: radial-gradient(120% 90% at 28% 45%, #142c50 0%, #0c1f3d 58%, #0a1a34 100%);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: #fff; }
html { scroll-behavior: smooth; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; border: 0; padding: 0; background: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
input::placeholder, textarea::placeholder { color: #8a94a6; }

body {
  font-family: 'Roboto', 'DM Sans', Arial, sans-serif;
  color: var(--ink);
}
html:lang(zh-CN) body {
  font-family: 'Roboto', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.page { container-type: inline-size; overflow: hidden; background: #fff; }
.page-column { min-height: 100vh; display: flex; flex-direction: column; }
.page-column__main { flex: 1; }

/* ---------- Buttons ---------- */

.btn {
  display: block;
  padding: clamp(12px, 1.05cqw, 16px) clamp(20px, 1.8cqw, 26px);
  border-radius: 999px;
  font-size: clamp(15px, 1.3cqw, 19px);
  font-weight: 500;
  line-height: 1.2;
}
.btn--mint { background: var(--mint); color: var(--ink-on-mint); }
.btn--mint:hover { color: var(--ink-on-mint); filter: brightness(1.08); }
.btn--edge { border: 2px solid var(--mint); }
.btn--ghost { border: 2px solid #e9eef5; color: #fff; }
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.btn-outline {
  display: block;
  margin-top: 28px;
  padding: 13px 24px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-size: clamp(15px, 1.2cqw, 17px);
  font-weight: 500;
  line-height: 1.2;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */

.site-header { background: #fff; color: var(--ink); }
.site-header__inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo { display: block; flex-shrink: 0; width: clamp(170px, 16cqw, 232px); }
.site-header__logo img { display: block; width: 100%; height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5cqw, 36px);
  font-size: clamp(14px, 1.32cqw, 19px);
}
.main-nav__link { display: block; }
.main-nav__link:hover,
.main-nav__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 11px;
}
.main-nav__link[aria-current="page"],
.main-nav__link[aria-current="page"]:hover { color: var(--teal-link); font-weight: 500; }

.lang-switch {
  display: flex;
  padding: 2px;
  border: 1px solid var(--field);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}
.lang-switch a { display: block; padding: 7px 12px; border-radius: 999px; }
.lang-switch a:not([aria-current]):hover { text-decoration: underline; text-underline-offset: 3px; }
.lang-switch a[aria-current],
.lang-switch a[aria-current]:hover { background: var(--navy); color: #fff; }

.header-cta {
  display: block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.header-cta:hover { color: #fff; filter: brightness(1.18); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; color: #fff; background: var(--hero-bg); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 640fr) minmax(0, 590fr);
  column-gap: 5%;
  row-gap: 40px;
  padding: 48px 24px 48px max(56px, calc((100% - 1228px) / 2));
}
.hero__copy { align-self: center; padding: 40px 0; }
.hero__title { font-size: clamp(34px, 4cqw, 58px); font-weight: 600; line-height: 1.16; letter-spacing: -.01em; }
.hero__lead {
  margin-top: 22px;
  max-width: 600px;
  font-size: clamp(16px, 1.45cqw, 21px);
  line-height: 1.55;
  color: #dbe2ec;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero__note { margin-top: 40px; font-size: clamp(13px, 1.1cqw, 16px); line-height: 1.5; color: #c5cdd9; }

.hero__media { position: relative; display: flex; align-items: center; }
.hero__teal { position: absolute; inset: -48px -24px -48px 18%; background: var(--teal); }
.hero__stage { position: relative; width: 100%; }
.hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1.11;
  border-radius: 16px;
  overflow: hidden;
  background: #0f3145;
  box-shadow: 0 26px 60px rgba(3, 10, 25, .5);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img--room { object-position: 50% 32%; clip-path: polygon(0 0, 64% 0, 42% 100%, 0 100%); }
.hero__img--rows { object-position: 50% 58%; clip-path: polygon(66.4% 0, 100% 0, 100% 100%, 44.4% 100%); }
.hero__stripe {
  position: absolute;
  inset: 0;
  background: #1d9599;
  clip-path: polygon(64% 0, 66.4% 0, 44.4% 100%, 42% 100%);
}
.hero__inset {
  position: absolute;
  left: -5%;
  bottom: 5%;
  width: 27%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.hero__inset img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }

/* ---------- Sections ---------- */

.section { background: #fff; }
.section--navy { background: var(--navy); color: #fff; }
.section--teal { background: var(--teal); color: #fff; }
.section__inner { max-width: 1340px; margin: 0 auto; padding: 80px 56px; }

.section-title { font-size: clamp(28px, 3.2cqw, 46px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.section-title--center { text-align: center; }
.section-lead {
  margin: 12px auto 0;
  max-width: 560px;
  text-align: center;
  font-size: clamp(15px, 1.25cqw, 18px);
  line-height: 1.6;
  color: #c5cdd9;
}

/* Why partner with us */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6cqw, 22px);
  margin-top: clamp(28px, 2.8cqw, 44px);
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 2.4cqw, 34px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 31, 61, .04), 0 12px 32px rgba(15, 31, 61, .05);
}
.card__icon {
  display: block;
  width: 52px;
  height: 52px;
  background: var(--teal-icon);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.card__title { margin-top: 22px; font-size: clamp(20px, 1.95cqw, 28px); font-weight: 500; line-height: 1.25; letter-spacing: 0; }
.card__text { flex: 1; margin-top: 14px; font-size: clamp(15px, 1.18cqw, 17px); line-height: 1.65; color: var(--body); }
.card__cta {
  display: block;
  margin-top: 26px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink-on-mint);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}
.card__cta:hover { color: var(--ink-on-mint); filter: brightness(1.08); }

/* Lab footage grid */
.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(12px, 1.6cqw, 22px);
  margin-top: clamp(28px, 2.8cqw, 44px);
}
.clip { display: block; min-width: 0; }
.clip:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.clip__thumb {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #0f3145;
}
.clip__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip__play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink-on-mint);
  display: grid;
  place-items: center;
  padding-left: 3px;
  font-size: 14px;
}
.clip__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  font-size: clamp(14px, 1.2cqw, 17px);
}
.clip__meta b { font-weight: 500; }
.clip__meta time { font-size: .88em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Two-column text + media sections */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 4.5cqw, 72px);
}
.split--center { align-items: center; }
.split--start { align-items: start; }
.stack { display: flex; flex-direction: column; align-items: flex-start; }
.split__text {
  margin-top: 16px;
  max-width: 520px;
  font-size: clamp(15px, 1.3cqw, 19px);
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}
.split__text--narrow { max-width: 480px; color: #e8f3f3; }
.split__cta { margin-top: 28px; }

/* Packaging */
.pack-figs { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); gap: 16px; }
.pack-figs img { display: block; width: 100%; height: 320px; object-fit: cover; border-radius: 12px; }
.pack-figs figcaption { margin-top: 10px; font-size: 15px; color: var(--body); }

/* Contact list */
.contact-list { border-top: 1px solid rgba(255, 255, 255, .3); }
.contact-list > div { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.contact-list dt { font-size: clamp(17px, 1.45cqw, 21px); font-weight: 600; line-height: 1.3; }
.contact-list dd { margin-top: 6px; font-size: clamp(15px, 1.2cqw, 17px); line-height: 1.6; color: #e8f3f3; }

/* ---------- Footage page ---------- */

.footage { color: #fff; background: var(--hero-bg); }
.footage__inner { max-width: 1340px; margin: 0 auto; padding: 72px 56px 88px; }
.footage__title { text-align: center; font-size: clamp(32px, 3.6cqw, 52px); font-weight: 600; line-height: 1.16; letter-spacing: -.01em; }
.footage__lead {
  margin: 14px auto 0;
  max-width: 560px;
  text-align: center;
  font-size: clamp(16px, 1.45cqw, 21px);
  line-height: 1.55;
  color: #dbe2ec;
}
.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 420px);
  justify-content: center;
  align-items: center;
  gap: 56px;
  margin-top: clamp(32px, 3cqw, 48px);
}
.player {
  justify-self: center;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #0f3145;
  box-shadow: 0 26px 60px rgba(3, 10, 25, .5);
}
.player video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0f3145; }
.clip-list { display: grid; gap: 6px; }
.clip-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  text-align: left;
  border-radius: 12px;
  background: transparent;
}
.clip-btn[aria-pressed="true"] { background: rgba(255, 255, 255, .1); }
.clip-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.clip-btn img { flex-shrink: 0; display: block; width: 64px; height: 86px; object-fit: cover; border-radius: 8px; }
.clip-btn span { display: grid; gap: 4px; }
.clip-btn b { font-size: clamp(16px, 1.3cqw, 19px); font-weight: 500; }
.clip-btn time { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }

.cta-band { background: var(--teal); color: #fff; }
.cta-band__inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.cta-band__title { font-size: clamp(26px, 2.6cqw, 38px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.cta-band__text { margin-top: 10px; font-size: clamp(15px, 1.3cqw, 19px); line-height: 1.6; color: #e8f3f3; }

/* ---------- Enquiry page ---------- */

.enquiry { background: #fff; }
.enquiry__inner { max-width: 600px; margin: 0 auto; padding: 72px 24px 96px; }
.enquiry__title { font-size: clamp(30px, 3cqw, 42px); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; }
.enquiry__lead { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--body); }

.enquiry-form { display: grid; gap: 20px; margin-top: 36px; }
.enquiry-form label { display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field);
  border-radius: 8px;
  padding: 13px 14px;
  outline: none;
}
.enquiry-form textarea { line-height: 1.5; resize: vertical; }
.enquiry-form input:hover,
.enquiry-form textarea:hover { border-color: #aab5c3; }
.enquiry-form input:focus,
.enquiry-form textarea:focus { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.enquiry-form__submit {
  justify-self: start;
  margin-top: 4px;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink-on-mint);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}
.enquiry-form__submit:hover { color: var(--ink-on-mint); filter: brightness(1.08); }
.enquiry-form__error {
  padding: 14px 16px;
  border-radius: 8px;
  background: #fdecec;
  color: #9b1c1c;
  font-size: 15px;
  line-height: 1.5;
}
.enquiry-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.enquiry__sent { margin-top: 36px; padding: 24px; border-radius: 12px; background: #f4f7fa; }
.enquiry__sent-title { font-size: 18px; font-weight: 500; }
.enquiry__sent-text { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--body); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: #fff; }
.site-footer__inner { max-width: 1340px; margin: 0 auto; padding: 44px 56px 28px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.site-footer__logo { display: block; width: 170px; }
.site-footer__logo img { display: block; width: 100%; height: auto; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; }
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Chinese typography ---------- */

:lang(zh-CN) .hero__title { line-height: 1.3; letter-spacing: 0; }
:lang(zh-CN) .section-title,
:lang(zh-CN) .footage__title,
:lang(zh-CN) .enquiry__title,
:lang(zh-CN) .cta-band__title { line-height: 1.3; letter-spacing: 0; }
:lang(zh-CN) .hero__lead,
:lang(zh-CN) .section-lead,
:lang(zh-CN) .footage__lead,
:lang(zh-CN) .enquiry__lead,
:lang(zh-CN) .enquiry__sent-text,
:lang(zh-CN) .cta-band__text,
:lang(zh-CN) .contact-list dd { line-height: 1.7; }
:lang(zh-CN) .card__text,
:lang(zh-CN) .split__text { line-height: 1.75; }

/* ---------- Compact (tablet) ---------- */

@media (max-width: 1024px) {
  .main-nav { gap: 18px; }
  .main-nav__link--home { display: none; }
  .header-cta { padding: 12px 20px; }
}

/* ---------- Mobile ---------- */

@media (max-width: 680px) {
  .site-header__inner { padding: 14px 20px; gap: 12px; }
  .site-header__logo { width: 128px; }
  .main-nav { gap: 10px; }
  .main-nav__link { display: none; }
  .header-cta { padding: 9px 14px; }
  .lang-switch { font-size: 13px; }
  .lang-switch a { padding: 5px 9px; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); padding: 36px 20px 44px; }
  .hero__copy { padding: 0; }
  .hero__teal { inset: 34% -20px -44px 18%; }

  .section__inner { padding: 52px 20px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .pack-figs img { height: 200px; }
  .clip__play { width: 36px; height: 36px; }

  .footage__inner { padding: 44px 20px 56px; }
  .player-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cta-band__inner { padding: 44px 20px; }

  .enquiry__inner { padding: 44px 20px 64px; }

  .site-footer__inner { padding: 36px 20px 24px; }
}
