/* Language control */
.desktop-nav { margin-left: auto; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
  color: #8a8279;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
}
.lang-switch a { transition: color .2s ease; }
.lang-switch a:hover,
.lang-switch a[aria-current="page"] { color: var(--ink); }
.lang-switch a[aria-current="page"] { font-weight: 800; }

/* The Build illustrations behave like small working diagrams. */
.build-section { position: relative; }
.legacy-section-anchor { position: absolute; top: 0; scroll-margin-top: 88px; }
.product-grid { grid-template-columns: 1fr; }
.product-grid .build-card {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  grid-template-rows: auto 1fr;
  gap: 22px 44px;
  min-height: 390px;
  padding: 28px;
}
.product-grid .card-top { grid-column: 1 / -1; }
.product-grid .build-visual { grid-column: 1; grid-row: 2; min-height: 290px; margin-top: 0; }
.product-grid .build-card-copy {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 0;
  padding: 20px 20px 20px 0;
}
.product-grid .build-card-copy h3 { font-size: clamp(33px, 3.4vw, 51px); line-height: 1.18; margin: 19px 0 18px; }
.product-grid .build-card-copy p { max-width: 490px; font-size: 15px; line-height: 1.85; }
.network-svg { display: block; width: 100%; height: 100%; min-height: 250px; overflow: visible; }
.network-links line { stroke: #b9aa9a; stroke-width: 1.5; }
.network-links .network-faint-link { stroke: #d3c8bc; stroke-dasharray: 3 7; }
.network-nodes circle { fill: var(--clay); }
.network-nodes .network-hub { fill: var(--ink); }
.build-visual-type span:first-child { animation: question-cycle 6.5s ease-in-out infinite; }
.build-visual-type span:nth-child(2) { animation: arrow-cycle 6.5s ease-in-out infinite; }
.build-visual-type span:last-child { animation: answer-cycle 6.5s ease-in-out infinite; }
@keyframes question-cycle {
  0%, 16%, 100% { opacity: 1; transform: translateY(0) rotate(0); }
  37%, 63% { opacity: .5; transform: translateY(-7px) rotate(-6deg); }
}
@keyframes arrow-cycle {
  0%, 12%, 100% { opacity: .5; transform: translate(-10px, -5px); }
  35%, 62% { opacity: 1; transform: translate(9px, -5px); }
}
@keyframes answer-cycle {
  0%, 25%, 100% { opacity: .55; transform: scale(.88); }
  46%, 70% { opacity: 1; transform: scale(1.09); }
}

/* Quiet motion in the masthead */
.hero-copy .eyebrow { animation: rise-in .7s ease-out both; }
.hero-copy h1 { animation: rise-in .8s .08s ease-out both; }
.hero-copy .hero-intro { animation: rise-in .8s .17s ease-out both; }
.hero-copy .hero-actions { animation: rise-in .8s .24s ease-out both; }
.hero-art { animation: rise-in .9s .2s ease-out both; }
.hero-art img { animation: symbol-drift 7s ease-in-out infinite alternate; }

/* A small planet loops around the question in Ideas. */
.orbit-system {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 315px;
  height: 315px;
  margin-left: -157.5px;
  margin-top: -157.5px;
  transform: rotate(-34deg) scaleX(.48);
  z-index: 2;
  pointer-events: none;
}
.orbit-spinner {
  position: absolute;
  inset: 0;
  animation: orbit-spin 11s linear infinite;
}
.orbit-ball {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 5px rgba(198,110,82,.13), 0 3px 12px rgba(114,60,41,.25);
  transform: translateX(-50%) scaleX(2.08);
}

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes symbol-drift {
  from { transform: translateY(3px) rotate(-3deg); }
  to { transform: translateY(-9px) rotate(-1deg); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* English headings need slightly different line lengths. */
html[lang="en"] .hero h1 {
  font-size: clamp(42px, 4.3vw, 62px);
  line-height: 1.15;
  white-space: normal;
}
html[lang="en"] .statement h2 { font-size: clamp(34px, 3.9vw, 58px); }

/* Four clear paths into the lab, nested within About. */
.about-pillars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border: 1px solid var(--line);
}
.about-pillar {
  min-width: 0;
  min-height: 255px;
  padding: 28px 26px 30px;
  background: var(--paper);
  scroll-margin-top: 110px;
  transition: background-color .22s ease;
}
.about-pillar:hover { background: #f0eae2; }
.pillar-number {
  color: var(--clay);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
}
.about-pillar h3 {
  margin: 38px 0 15px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.025em;
}
.about-pillar p {
  max-width: 285px;
  margin: 0;
  color: #6f6a63;
  font-size: 13px;
  line-height: 1.8;
}
.pillar-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pillar-link:hover { color: var(--ink); }

@media (max-width: 1050px) {
  .about-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-pillar { min-height: 220px; }
}

@media (max-width: 760px) {
  .product-grid .build-card { display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 20px; }
  .product-grid .build-visual { min-height: 220px; margin-top: 24px; }
  .product-grid .build-card-copy { border-top: 1px solid #d6d1c9; padding: 20px 0 5px; }
  .product-grid .build-card-copy h3 { font-size: clamp(31px, 7vw, 42px); }
  .lang-switch {
    margin-left: auto;
    margin-right: 4px;
    padding-left: 0;
    border-left: 0;
  }
  html[lang="en"] .hero h1 { font-size: clamp(38px, 8vw, 55px); }
}
@media (max-width: 560px) {
  .about-pillars { grid-template-columns: 1fr; }
  .about-pillar { min-height: 0; padding: 25px 24px 28px; }
  .about-pillar h3 { margin-top: 24px; }
}
@media (max-width: 470px) {
  .lang-switch { gap: 6px; font-size: 10px; }
  html[lang="en"] .hero h1 { font-size: clamp(31px, 8.2vw, 37px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .hero-intro,
  .hero-copy .hero-actions,
  .hero-art,
  .hero-art img,
  .orbit-spinner,
  .build-visual-type span { animation: none !important; }
  .about-pillar { transition: none; }
}
