/* ===== Vivat Robotics — shared styles ===== */
:root {
  --primary-color: #00BFFF;
  --primary-dark: #0099cc;
  --background-color: #ffffff;
  --surface-color: #fafbfc;
  --surface-alt: #f3f6f9;
  --accent-color: #00aaff;
  --text-color: #111111;
  --subtext-color: #555555;
  --muted-color: #888888;
  --border-color: #e5e9ee;
  --highlight-bg: rgba(0, 191, 255, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1180px;
  --header-height: 72px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-color);
  background: var(--background-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Antonio', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.6em;
  color: var(--text-color);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }

p { margin: 0 0 1rem; color: var(--subtext-color); }

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

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Antonio', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.brand img { height: 32px; width: auto; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary-color); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-toggle button {
  background: transparent;
  border: 0;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  color: var(--subtext-color);
  font-family: inherit;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-toggle button.active {
  background: var(--primary-color);
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-color);
  margin: 4px 0;
  transition: all 0.25s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(720px, calc(100vh - var(--header-height)));
  display: flex;
  align-items: center;
  background: var(--background-color);
}

.hero .container {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-logo { height: 72px; margin: 0 auto 2rem; }

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.5rem;
}

.hero-title strong,
.section-head h2 strong {
  color: var(--primary-color);
  background: var(--highlight-bg);
  padding: 0 0.4rem;
  border-radius: 6px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--subtext-color);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-color);
  border-color: var(--border-color);
}
.btn-ghost:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* ===== Section common ===== */
.section {
  padding: 5rem 0;
}
.section-alt { background: var(--surface-color); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-head p {
  font-size: 1.2rem;
  line-height: 1.55;
}

.section-eyebrow {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

/* ===== Page header (non-hero pages) ===== */
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
}

/* ===== Grids / Cards ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Two cards centered, matching grid-3 card width */
.team-pair {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.team-pair > .team-card {
  flex: 0 0 calc((100% - 1.5rem * 2) / 3);
  min-width: 240px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 191, 255, 0.3);
}

.card-media {
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p { font-size: 0.95rem; margin-bottom: 0; }

/* ===== Image compare slider (light/dark) ===== */
.img-compare {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  --pos: 50%;
  user-select: none;
}
.img-compare-images {
  position: relative;
  display: block;
  line-height: 0;
}
.img-compare-before,
.img-compare-after {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.img-compare-after {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.img-compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.img-compare-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}
.img-compare-handle::before {
  content: "\2194";
  font-size: 1.2rem;
  line-height: 1;
}
.img-compare-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: ew-resize;
  opacity: 0;
  z-index: 3;
}
.img-compare-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 100%;
  cursor: ew-resize;
}
.img-compare-range::-moz-range-thumb {
  width: 44px;
  height: 100%;
  cursor: ew-resize;
  border: 0;
  background: transparent;
}
.img-compare-label {
  position: absolute;
  top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.4rem 0.85rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.img-compare-label-left { left: 1rem; }
.img-compare-label-right { right: 1rem; }

.img-compare-disclaimer {
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}

/* ===== Noise slider (loud vs quiet, image-compare style) ===== */
.noise-slider .img-compare-images {
  aspect-ratio: 800 / 280;
  background: #1c1c1c;
}
.noise-panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.noise-slider .img-compare-after.noise-panel {
  position: absolute;
  top: 0;
  left: 0;
}
.noise-bg {
  display: block;
  width: 100%;
  height: 100%;
}
.noise-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  pointer-events: none;
}
.noise-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}
.noise-big {
  font-family: 'Antonio', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.noise-sub {
  font-size: 0.95rem;
  opacity: 0.9;
}

@media (max-width: 700px) {
  .noise-big { font-size: 2.4rem; }
  .noise-eyebrow { font-size: 0.7rem; }
  .noise-sub { font-size: 0.8rem; }
}

/* ===== Hand mention (single-line closer after sliders) ===== */
.hand-mention {
  text-align: center;
  max-width: 720px;
  margin: 2.5rem auto 0;
  font-size: 1.15rem;
  color: var(--text-color);
  line-height: 1.55;
}
.hand-mention strong {
  font-weight: 600;
  color: var(--primary-dark);
}

/* ===== Careers ===== */
.careers-grid {
  margin-bottom: 2rem;
}

/* Career detail page */
.career-detail {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
}
.career-detail-head .role {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.career-detail-head h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
}
.career-detail-lede {
  font-size: 1.05rem;
  color: var(--subtext-color);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}
.career-detail-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-color);
}
.career-detail-body ul {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  color: var(--subtext-color);
  font-size: 0.95rem;
  line-height: 1.6;
}
.career-detail-body ul li {
  margin-bottom: 0.35rem;
}

/* Process list */
.process-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
}
.process-list strong {
  font-size: 1rem;
  color: var(--text-color);
}
.process-list span {
  font-size: 0.9rem;
  color: var(--subtext-color);
}
.process-note {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted-color);
}

/* Perks grid */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.perks-grid li {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.perks-grid strong {
  display: block;
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 0.35rem;
}
.perks-grid span {
  font-size: 0.9rem;
  color: var(--subtext-color);
}
.perks-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted-color);
}

@media (max-width: 900px) {
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .perks-grid { grid-template-columns: 1fr; }
  .career-detail { padding: 1.5rem; }
}
.career-card .role {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.career-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.career-card p {
  font-size: 0.95rem;
  color: var(--subtext-color);
  margin-bottom: 1rem;
  line-height: 1.55;
}
.career-meta {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-color);
  background: var(--highlight-bg);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.careers-footer {
  text-align: center;
  margin-top: 2rem;
}
.careers-perks {
  font-size: 0.95rem;
  color: var(--subtext-color);
  margin: 0;
}

/* ===== Contrast pair (problem vs NUNCHI) ===== */
.contrast-pair { margin-bottom: 3rem; }
.contrast-card .contrast-eyebrow {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.contrast-card h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}
.contrast-card.highlight {
  border-color: var(--primary-color);
  background: var(--highlight-bg);
}
.contrast-card.highlight .contrast-eyebrow {
  color: var(--primary-dark);
}
.contrast-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}
.contrast-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-color);
  color: var(--subtext-color);
}
.contrast-list li:last-child { border-bottom: 0; }

/* Team card variant */
.team-card .card-media {
  aspect-ratio: 1 / 1;
  background: var(--surface-alt);
}
.team-card .card-media img {
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.03);
}
.team-card .role {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.team-card .credentials {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--subtext-color);
}
.team-card .credentials li {
  padding: 0.2rem 0;
  display: flex;
  gap: 0.5rem;
}
.team-card .credentials li::before {
  content: "·";
  color: var(--primary-color);
  font-weight: 700;
}
.future-card { opacity: 0.92; }
.future-card .role { color: var(--muted-color); }
.future-card .role::after {
  content: " · 합류 예정";
  font-size: 0.75rem;
}
html[lang="en"] .future-card .role::after { content: " · joining soon"; }

.team-subhead {
  text-align: center;
  margin: 3rem 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtext-color);
}

/* ===== About / feature row ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Soft tinted frame for white-on-white product renders so they don't blend
 * into the page. Apply by adding the .render-frame class to <img>. */
.render-frame {
  background: linear-gradient(135deg, #f5f8fc 0%, #e9eff5 100%);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(15, 50, 90, 0.08), inset 0 0 0 1px var(--border-color);
  padding: 1.25rem;
  box-sizing: border-box;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-item {
  text-align: center;
  padding: 1.5rem;
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: var(--highlight-bg);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
}

/* Wide pill-shaped metric badge for cards where the icon slot needs to fit
 * a short metric like "≤100 lx", "≤50 dB", "95%". Single line, auto width. */
.metric-badge {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 0.9rem;
  margin: 0 0 1rem;
  border-radius: 999px;
  background: var(--highlight-bg);
  color: var(--primary-color);
  font-family: 'Antonio', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-info dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-color);
  margin-top: 1.25rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  color: var(--text-color);
}
.contact-info a { color: var(--primary-color); }

.contact-form { display: grid; gap: 1rem; }
.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--subtext-color);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--highlight-bg);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--surface-color);
  padding: 2.5rem 0 2rem;
  margin-top: 4rem;
  text-align: center;
  color: var(--subtext-color);
  font-size: 0.9rem;
}
.site-footer .brand {
  justify-content: center;
  margin-bottom: 1rem;
}

/* ===== Animations =====
 * .reveal hides content until JS adds .in. To avoid invisible content when
 * JS fails, search-engine crawlers, or users prefer reduced motion, we only
 * apply the entrance animation after <html> gets .js (set by main.js). */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}
html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* ===== Partners logo strip ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1080px;
  margin: 2.25rem auto 0;
}
.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 1.1rem 1.4rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.partner-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 191, 255, 0.35);
}
.partner-tile img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .partner-tile { height: 88px; padding: 0.85rem 1rem; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .values-grid { grid-template-columns: 1fr; gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-pair > .team-card { flex: 0 0 calc((100% - 1.5rem) / 2); }
}

@media (max-width: 640px) {
  :root { --header-height: 60px; }
  .hero { min-height: 0; }
  .hero .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero-logo { height: 56px; margin-bottom: 1.25rem; }
  .hero-title { font-size: 1.7rem; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem;
    transform: translateY(-110%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s 0.25s;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s;
  }
  .nav-links a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); }
  .nav-links li:last-child a { border-bottom: 0; }
  /* Push hamburger to the right edge so it groups with the lang toggle */
  .menu-toggle {
    display: block;
    order: 2;
    margin-left: auto;
  }
  .nav-right { order: 3; margin-left: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .team-pair > .team-card { flex: 0 0 calc((100% - 1.5rem) / 2); }
  .section { padding: 3.5rem 0; }
}

/* Very narrow screens — hide brand text to keep header tidy */
@media (max-width: 380px) {
  .brand span { display: none; }
}
