/* Từ phòng lab, Liên hệ, chân trang: the louder end of the page. */

/* Lab: the tablet floats over a large ink drop; three real crops of the app drift at their own pace. */
.lab { display: grid; gap: clamp(2.5rem, 5vw, 4rem); padding: 0 var(--gutter) var(--space-section); align-items: center; overflow-x: clip; }
.lab-copy { display: grid; gap: 1rem; max-width: 34rem; }
.lab-copy h3 { margin-top: 0.5rem; font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; }
.lab-shot { position: relative; display: grid; gap: 1rem; perspective: 1400px; padding-block: clamp(2rem, 6vw, 5rem); }
.lab-ink {
  position: absolute; z-index: -1; left: 50%; top: 46%; width: 92%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFF4B8 0 6%, var(--client) 22%, #F2CF2E 100%); /* wet ink sheen */
}
.tablet {
  position: relative; padding: clamp(8px, 1.2vw, 16px); border-radius: clamp(18px, 2.2vw, 30px); background: var(--ink);
  transform-origin: 50% 80%; box-shadow: 0 40px 80px -30px rgba(16, 27, 58, 0.55), 0 12px 24px -12px rgba(16, 27, 58, 0.35);
}
.tablet img { border-radius: clamp(10px, 1.1vw, 16px); background: #E9E3D6; }
.lab-crop {
  position: absolute; z-index: 2; height: auto; border-radius: 14px; background: #F4ECDA;
  box-shadow: 0 24px 44px -18px rgba(16, 27, 58, 0.5), 0 0 0 1px rgba(16, 27, 58, 0.06);
}
.lab-crop--bar { width: 46%; left: -4%; top: 0; rotate: -3deg; }
.lab-crop--magnet { width: 19%; right: -3%; top: 24%; rotate: 6deg; }
.lab-crop--tray { width: 34%; right: 8%; bottom: 6%; rotate: -4deg; }
.lab-shot figcaption { position: relative; z-index: 3; font-size: 0.95rem; font-weight: 500; }
@media (max-width: 959px) { .lab-crop--tray { bottom: auto; top: 58%; right: -5%; width: 38%; } .lab-shot figcaption { margin-top: 1.5rem; } }
@media (min-width: 960px) { .lab { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); } }

/* Contact */
.contact { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: center; padding: 0 var(--gutter) clamp(3rem, 7vw, 6rem); }
.contact:focus { outline: none; }
.merged { position: relative; width: clamp(13rem, 30vw, 26rem); aspect-ratio: 1; display: grid; place-items: center; }
.merged-poster { position: absolute; inset: 9%; border-radius: 50%; background: var(--team); }
.merged.is-gl .merged-poster { visibility: hidden; }
.merged-label {
  position: relative; width: 60%; text-align: center; overflow-wrap: anywhere; text-wrap: balance;
  font: 800 clamp(1.1rem, 2vw, 1.9rem)/1.1 var(--font-display);
}
.contact-body { display: grid; gap: 1.25rem; justify-items: start; max-width: 50rem; }
.contact h2 { max-width: 14ch; font-size: clamp(2.4rem, 6vw, 5.5rem); font-weight: 800; line-height: 1.03; letter-spacing: -0.04em; text-wrap: balance; }
.cta {
  display: inline-flex; align-items: center; min-height: 72px; padding: 0 2.25rem; margin-top: 0.5rem; border-radius: 999px;
  background: var(--team); color: var(--ink); text-decoration: none;
  font: 800 clamp(1.2rem, 2vw, 1.6rem)/1 var(--font-display); letter-spacing: -0.01em;
  box-shadow: 0 18px 40px -18px rgba(62, 174, 74, 0.9); transition: background-color 0.2s, box-shadow 0.2s;
}
.cta:hover { background: #4CC15A; box-shadow: 0 24px 50px -16px rgba(62, 174, 74, 1); }
.cta:focus-visible { outline-offset: 5px; }
.email {
  display: inline-flex; align-items: center; min-height: 44px; max-width: 100%;
  font: 700 clamp(1.1rem, 5.2vw, 2.2rem)/1.15 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere;
  text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; user-select: all;
}
.email:hover { text-decoration-color: var(--team); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.copy-status { min-height: 1.6em; font-size: 0.95rem; color: var(--ink-soft); }
@media (min-width: 960px) {
  .contact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr); column-gap: 4vw; }
  .email { font-size: clamp(1.5rem, 2.3vw, 2.2rem); }
}

/* Footer: the name, huge, filled with moving ink (js/wordmark-ink.js). Fallback: solid green letters. */
.footer-wordmark { position: relative; flex: 0 0 calc(100% + 2 * var(--gutter)); min-width: 0; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow: clip; }
.wordmark-text {
  font: 800 16.4vw/0.9 var(--font-display); letter-spacing: -0.05em; color: var(--team);
  padding-block: 0.04em 0.1em; white-space: nowrap;
}
.footer-wordmark.is-gl .wordmark-text { color: transparent; }
.footer-wordmark .ink-canvas { pointer-events: none; }
.site-footer { padding-top: 0; }
