/* ============================================================
   MCN — site styles (light theme)
   Tokens: text #121212 · white #fff · black #000 · grey #f5f5f5
   Fonts: Geist (display/body), Inter (buttons/bold)
   ============================================================ */
:root {
  --text: #121212;
  --white: #fff;
  --black: #000;
  --grey: #f5f5f5;
  --text-70: rgba(18, 18, 18, 0.7);
  --text-56: rgba(18, 18, 18, 0.56);
  --font-geist: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-inter: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-card: 0 8px 16px rgba(0, 0, 0, 0.12);
  --shadow-btn-dark: 0 8px 16px rgba(0, 0, 0, 0.24);
  --shadow-btn-white: 0 4px 16px rgba(0, 0, 0, 0.16);
  --grad-dark: linear-gradient(180deg, rgb(54, 54, 54) 0%, rgb(0, 0, 0) 100%);
  --grad-white: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgb(245, 245, 245) 100%);
  --grad-grey: linear-gradient(180deg, rgb(249, 249, 249) 0%, rgb(240, 240, 240) 100%);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
section[id], footer[id] { scroll-margin-top: 96px; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-geist);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
}
.section { padding: 0 0 160px; }
/* ---------- Gradient text fills ---------- */
.text-fill, .text-fill-hero {
  display: inline-block;
  color: var(--text);
}
.text-fill {
  background-image: linear-gradient(178deg, rgba(18, 18, 18, 0.5) 0%, rgb(18, 18, 18) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* ---------- Type presets (from the template) ---------- */
h1 { font: 500 64px/1.2 var(--font-geist); letter-spacing: -0.06em; }
h2 { font: 500 48px/1.2 var(--font-geist); letter-spacing: -0.06em; }
h4 { font: 500 32px/1.2 var(--font-geist); letter-spacing: -0.04em; }
h5 { font: 500 24px/1.3 var(--font-geist); letter-spacing: -0.04em; }
h6 { font: 500 20px/1.2 var(--font-geist); letter-spacing: -0.02em; }
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2 { max-width: 700px; }
.section-sub {
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--text-70);
  max-width: 630px;
}
.section-sub.wide { max-width: 780px; }
/* ---------- Tag pill ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 2px solid var(--white);
  background: var(--grad-white);
  box-shadow: var(--shadow-card);
  font: 500 14px/1.2 var(--font-geist);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  width: fit-content;
}
.tag-icon { width: 20px; height: 20px; }
/* ---------- Buttons (double-label flip on hover) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px 19px;
  min-width: 180px;
  border-radius: 12px;
  border: 2px solid transparent;
  font: 500 16px/1.24 var(--font-inter);
  letter-spacing: -0.04em;
  cursor: pointer;
}
.btn.full { width: 100%; }
.btn-dark {
  background: var(--grad-dark);
  border-color: var(--text);
  color: var(--white);
  box-shadow: var(--shadow-btn-dark);
}
.btn-white {
  background: var(--grad-white);
  border-color: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-btn-white);
}
.btn-flip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  height: 20px;
  overflow: hidden;
}
.btn-flip span {
  display: block;
  height: 20px;
  line-height: 20px;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, filter;
}
.btn-flip span:last-child { filter: blur(4px); transform: scale(0.7); }
.btn:hover .btn-flip span:first-child { filter: blur(4px); transform: translateY(-45px) scale(0.7); }
.btn:hover .btn-flip span:last-child { filter: blur(0); transform: translateY(-45px) scale(1); }
/* ---------- Nav ---------- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
.nav.scrolled {
  position: fixed;
  padding: 14px 30px 0;
  animation: navIn 0.35s ease;
}
.nav.scrolled .nav-container {
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid var(--white);
  background: var(--grad-white);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
@keyframes navIn {
  from { transform: translateY(-100%); }
  to { transform: none; }
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 26px/1 var(--font-geist);
  letter-spacing: -0.04em;
}
.nav-logo .logo-mark { height: 64px; width: auto; display: block; }
.logo-dot { opacity: 0.4; }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 400 16px/1.4 var(--font-geist);
  color: rgba(18, 18, 18, 0.7);
  transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.is-current { color: var(--text); }
.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-burger span { width: 18px; height: 2px; border-radius: 100px; background: var(--text); }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  padding: 8px 20px 24px;
  box-shadow: var(--shadow-card);
}
.nav-mobile a { padding: 10px 0; font-size: 17px; }
.nav-mobile.open { display: flex; }
/* ---------- Hero (one full viewport, no badge) ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  padding-top: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-waves {
  position: absolute;
  inset: 0;
  background:
    url("../assets/bg-hero-waves.jpg") center / cover no-repeat,
    linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
}
.hero-waves::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  padding: 0 30px 6vh;
  max-width: 1016px;
}
.hero-title { font-size: clamp(40px, 5.4vw, 72px); }
.hero-buttons {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-desc {
  margin-top: 14px;
  max-width: 720px;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--text-56);
}
/* ---------- Technology ---------- */
.solution-figure {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 40px 24px;
  border-radius: 24px;
  border: 3px solid var(--white);
  background:
    url("../assets/bg-card.png") center / cover no-repeat, var(--grad-grey);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}
.solution-figure svg { width: 100%; height: auto; max-height: 420px; display: block; }
.solution-figure text { font: 500 15px var(--font-geist); letter-spacing: -0.01em; fill: var(--text-56); }
/* ---------- Team ---------- */
.team-group { max-width: 960px; margin: 0 auto; }
.team-group + .team-group { margin-top: 36px; }
.team-group-label {
  font: 500 22px/1.2 var(--font-geist);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  padding-left: 4px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(50px, 1fr));
  gap: 24px;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 24px 22px;
  border-radius: 20px;
  border: 3px solid var(--white);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring);
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16); }
.team-card {
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  font: 500 22px/1.2 var(--font-geist);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.team-card::after { content: "\2197"; font-size: 16px; color: var(--text-56); transition: color 0.3s ease; }
.team-card:hover::after { color: var(--text); }
/* ---------- Careers ---------- */
/* ---------- Careers: role list on the home page ---------- */
.role-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.role-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 20px;
  border: 3px solid var(--white);
  background: var(--grad-grey);
  box-shadow: var(--shadow-card);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring);
}
.role-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16); }
.role-card h3 { font: 500 24px/1.2 var(--font-geist); letter-spacing: -0.03em; }
.role-card p { margin-top: 8px; font-size: 16px; line-height: 1.45; letter-spacing: -0.01em; color: var(--text-70); }
.role-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  font: 500 14px/1.3 var(--font-geist);
  letter-spacing: -0.01em;
  color: var(--text-56);
}
.role-meta li + li::before { content: "\00B7"; margin-right: 18px; }
.role-arrow { flex: none; font-size: 22px; color: var(--text-56); transition: transform 0.3s var(--ease-spring), color 0.3s ease; }
.role-card:hover .role-arrow { transform: translate(3px, -3px); color: var(--text); }
.role-list + .job-mail { margin-top: 28px; text-align: center; }

/* ---------- Careers: role detail pages ---------- */
body.subpage .nav { position: fixed; background: var(--white); }
.role-page { padding: 150px 0 120px; }
.role-page .container { max-width: 820px; }
.role-back {
  display: inline-block;
  margin-bottom: 28px;
  font: 500 15px/1 var(--font-inter);
  color: var(--text-56);
  text-decoration: none;
}
.role-back:hover { color: var(--text); }
.role-head { margin-bottom: 40px; }
.role-head .tag { margin-bottom: 20px; }
.role-head h1 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.04em; line-height: 1.08; }
.role-head .role-meta { margin-top: 18px; font-size: 15px; }
.role-page .role-meta { flex-direction: row; gap: 6px 18px; margin-top: 18px; }
.role-page .role-meta li { padding-left: 0; font-size: 15px; line-height: 1.3; color: var(--text-56); }
.role-page .role-meta li::before { content: none; }
.role-page .role-meta li + li::before { content: "\00B7"; position: static; width: auto; height: auto; background: none; margin-right: 18px; }
.role-page h2 { font: 500 26px/1.2 var(--font-geist); letter-spacing: -0.03em; margin: 44px 0 14px; }
.role-page p { font-size: 17px; line-height: 1.55; letter-spacing: -0.01em; color: var(--text-70); }
.role-page p + p { margin-top: 12px; }
.role-page ul { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.role-page li {
  position: relative;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-70);
  list-style: none;
}
.role-page li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
}
.role-apply {
  margin-top: 56px;
  padding: 36px;
  border-radius: 20px;
  border: 3px solid var(--white);
  background: var(--grad-grey);
  box-shadow: var(--shadow-card);
}
.role-apply h2 { margin-top: 0; }
.role-apply .btn { margin-top: 22px; }
.role-apply .job-mail { margin-top: 16px; }

/* Careers / job card */
.job-mail {
  text-align: center;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  color: var(--text-56);
}
.job-mail a { font-weight: 500; color: var(--text); }
/* ---------- Footer (hands image removed) ---------- */
.footer {
  position: relative;
  padding: 150px 0 40px;
  overflow: hidden;
}
.footer-bg {
  position: absolute;
  inset: 0;
  background:
    url("../assets/bg-footer.jpg") center / cover no-repeat,
    linear-gradient(180deg, #f6f6f6 0%, #efefef 100%);
}
.footer-fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
}
.footer-fade.top { top: 0; transform: rotate(180deg); }
.footer-fade.bottom { bottom: 0; height: 140px; }
.footer-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 40px; }
.footer-cols {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand { max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.footer-tagline { font: 500 20px/1.3 var(--font-geist); letter-spacing: -0.02em; color: var(--text-70); max-width: 200px; }
.footer-nav { display: flex; flex-direction: column; gap: 14px; max-width: 208px; }
.footer-nav-right { margin-right: 0; }
.footer-word { display: flex; justify-content: center; }
.footer-word .footer-logo {
  width: clamp(260px, 40vw, 560px);
  height: auto;
  display: block;
  user-select: none;
  -webkit-mask-image: linear-gradient(178deg, rgba(0, 0, 0, 0.45) 0%, rgb(0, 0, 0) 100%);
  mask-image: linear-gradient(178deg, rgba(0, 0, 0, 0.45) 0%, rgb(0, 0, 0) 100%);
}
.footer-label {
  font: 400 16px/1.2 var(--font-geist);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
}
.footer-nav a {
  font: 500 24px/1.3 var(--font-geist);
  letter-spacing: -0.04em;
  transition: color 0.4s ease;
}
.footer-nav a:hover { color: rgba(18, 18, 18, 0.6); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(18, 18, 18, 0.1);
  font-size: 16px;
  letter-spacing: -0.01em;
}
/* ---------- Scroll reveal (template: y60 + spring 400/80, staggered) ---------- */
.js .reveal {
  opacity: 0.001;
  transform: translateY(60px);
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
}
.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.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
}
/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  h2 { font-size: 40px; }
  .section { padding-bottom: 100px; }
}
@media (max-width: 809px) {
  h2 { font-size: 34px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav { background: var(--white); position: fixed; }
  .team-grid { grid-template-columns: 1fr; }
  .role-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 22px; }
  .role-arrow { display: none; }
  .role-page { padding: 120px 0 80px; }
  .role-apply { padding: 26px 22px; }
  .footer-cols { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: center; }
  .section { padding-bottom: 60px; }
  h1 { letter-spacing: -0.02em; }
  .hero-title br { display: none; }
  .hero { height: auto; min-height: 100svh; padding: 96px 0 48px; }
  .hero-content { padding: 0 24px; }
  .hero-desc { font-size: 15px; }
  .hero-buttons .btn { flex: 1 1 100%; }
    }
/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%) translateY(16px);
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid var(--text);
  background: var(--grad-dark);
  color: var(--white);
  font: 500 15px/1.3 var(--font-geist);
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-btn-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring);
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
/* ---------- Publications ---------- */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}
.pub-card {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 22px 28px;
  border-radius: 16px;
  border: 2px solid var(--white);
  background: var(--grad-white);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}
.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}
.pub-meta { display: flex; flex-direction: column; gap: 4px; }
.pub-journal {
  font: 500 14px/1.35 var(--font-geist);
  letter-spacing: -0.01em;
}
.pub-year { font-size: 13px; color: var(--text-56); }
.pub-body h3 {
  font: 500 17px/1.35 var(--font-geist);
  letter-spacing: -0.02em;
}
.pub-body p { margin-top: 5px; font-size: 13.5px; color: var(--text-70); }
.pub-arrow {
  font-size: 20px;
  color: var(--text-56);
  transition: transform 0.3s var(--ease-spring), color 0.3s ease;
}
.pub-card:hover .pub-arrow { transform: translate(3px, -3px); color: var(--text); }
@media (max-width: 809px) {
  .solution-figure { padding: 16px 12px 10px; }
  .solution-figure text { font-size: 28px; }
  .pub-card { grid-template-columns: 1fr; gap: 10px; padding: 20px 22px; }
  .pub-meta { flex-direction: row; align-items: baseline; gap: 10px; }
  .pub-arrow { display: none; }
}
.pub-sub { max-width: 760px; }
/* ---------- Publication PDF viewer overlay ---------- */
.pdf-modal { position: fixed; inset: 0; z-index: 300; }
.pdf-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pdf-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  width: min(1060px, 94vw);
  height: min(880px, 92vh);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 2px solid var(--white);
  background: var(--white);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-spring);
}
.pdf-modal.open .pdf-backdrop { opacity: 1; }
.pdf-modal.open .pdf-panel { opacity: 1; transform: translate(-50%, -50%); }
.pdf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.1);
  background: var(--grad-white);
}
.pdf-title {
  font: 500 15px/1.35 var(--font-geist);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.pdf-ext {
  font: 500 14px/1.2 var(--font-geist);
  color: var(--text-70);
  white-space: nowrap;
}
.pdf-ext:hover { color: var(--text); }
.pdf-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(18, 18, 18, 0.16);
  background: var(--white);
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease;
}
.pdf-close:hover { background: var(--grey); }
.pdf-frame { flex: 1; width: 100%; border: 0; background: #525659; }
