/* Legacy Flight pages (vision, about, news, legal…) inside the studio shell.
   The content markup comes from the old single-page site; this sheet restyles
   it with the studio tokens and hides parts that no longer have behaviour. */

.legacy-page {
  --legacy-ink: #163438;
  --legacy-muted: #60716e;
  --legacy-blue: #1876a4;
  --legacy-line: rgba(22, 52, 56, 0.14);
  --legacy-tone: #cfe1e8;
  min-height: 100vh;
  background: #f4f4ee;
  color: var(--legacy-ink);
}
.legacy-page .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0;
  padding: 0 4.3%;
  background: rgba(244, 244, 238, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.legacy-page .seo-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
}
.legacy-page .legacy-lang {
  color: var(--legacy-muted);
}

.legacy-main {
  width: min(1120px, 91.4%);
  margin: 0 auto;
  padding: 36px 0 12vh;
}
.legacy-main > .breadcrumbs {
  display: block;
  margin: 0 0 7vh;
  color: var(--legacy-muted);
  font-size: 13px;
}
.legacy-main > .breadcrumbs a:hover {
  color: var(--legacy-blue);
}

/* ---------- Remnants of the old single-page site ---------- */
.legacy-content .video-bg,
.legacy-content video,
.legacy-content .insya-text,
.legacy-content .white-stripe-container,
.legacy-content .collapsed-button-container,
.legacy-content .collapsed-button,
.legacy-content .circular-btn,
.legacy-content .circular-anim,
.legacy-content .js-share-bottom-btn-social,
.legacy-content [class*="share"],
.legacy-content .next-project-header,
.legacy-content .next-project-title,
.legacy-content .underline,
.legacy-content .news-list .bg,
.legacy-content .divider,
.legacy-content script {
  display: none !important;
}
.legacy-content [auto-height],
.legacy-content .cropper,
.legacy-content .texts-offsetter,
.legacy-content .centerer-layout,
.legacy-content .wrapper,
.legacy-content .container,
.legacy-content .bundles,
.legacy-content .bundle,
.legacy-content .text-container {
  position: static !important;
  height: auto !important;
  min-height: 0 !important;
  width: auto !important;
  max-width: none;
  margin: 0;
  padding: 0;
  transform: none !important;
  opacity: 1 !important;
  background: none;
  overflow: visible;
}
.legacy-content [style*="color"] {
  color: inherit !important;
}

/* ---------- Typography ---------- */
.legacy-content {
  font-size: 17px;
  line-height: 1.7;
}
.legacy-content h1,
.legacy-content h2,
.legacy-content h3,
.legacy-content h4 {
  color: var(--legacy-ink);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
/* The first heading of a page acts as its hero title. */
.legacy-content h1 {
  max-width: 18ch;
  margin: 0 0 28px;
  font-size: clamp(44px, 6vw, 96px);
  letter-spacing: -0.05em;
  line-height: 0.98;
}
.legacy-content h1 .topline,
.legacy-content h1 .bottomline,
.legacy-content h1 .bottomlinex {
  display: block;
}
.legacy-content h1 .bottomline,
.legacy-content h1 .bottomlinex,
.legacy-content .blue {
  color: var(--legacy-blue);
}
.legacy-content h2 {
  max-width: 24ch;
  margin: 9vh 0 20px;
  font-size: clamp(30px, 3.4vw, 54px);
}
.legacy-content header h2,
.legacy-content .texts h2 {
  margin-top: 0;
  font-size: clamp(24px, 2.4vw, 36px);
  color: var(--legacy-blue);
  letter-spacing: -0.03em;
}
.legacy-content h3 {
  margin: 44px 0 12px;
  font-size: clamp(22px, 2vw, 30px);
}
.legacy-content h4 {
  margin: 28px 0 10px;
  font-size: 20px;
}
.legacy-content h5,
.legacy-content h6,
.legacy-content .category {
  margin: 0 0 18px;
  color: var(--legacy-blue);
  font: 12px/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legacy-content p,
.legacy-content li,
.legacy-content address,
.legacy-content .description,
.legacy-content .push,
.legacy-content .body {
  max-width: 68ch;
  color: #2f4a4c;
}
.legacy-content p {
  margin: 0 0 1.1em;
}
.legacy-content header .push,
.legacy-content header p,
.legacy-content .texts > p {
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--legacy-muted);
}
.legacy-content .author,
.legacy-content .texts .body {
  color: var(--legacy-muted);
  font-size: 14px;
}
.legacy-content a {
  color: var(--legacy-blue);
  text-decoration: underline;
  text-decoration-color: rgba(24, 118, 164, 0.35);
  text-underline-offset: 3px;
}
.legacy-content a:hover {
  text-decoration-color: currentColor;
}
.legacy-content ul,
.legacy-content ol {
  padding-left: 1.2em;
}
.legacy-content strong,
.legacy-content b {
  color: var(--legacy-ink);
}

/* Page intro block (old full-screen headers). */
.legacy-content article > header,
.legacy-content header.intro {
  padding: 0 0 7vh;
  margin-bottom: 7vh;
  border-bottom: 1px solid var(--legacy-line);
}

/* ---------- Media ---------- */
.legacy-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px 0;
  border-radius: 18px;
}
.legacy-content svg:not(.insya-logo) {
  max-width: 100%;
  height: auto;
}

/* ---------- Old column layouts → clean grids ---------- */
/* .two-columns is the only grid container; .column-wrapper is content. */
.legacy-content .two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 5vw;
}
.legacy-content .two-columns .two-columns h2 {
  margin-top: 0;
  font-size: clamp(22px, 2vw, 30px);
}
/* Copy + illustration pairs sit side by side. */
.legacy-content .centerer-layout:has(> .copy):has(> .graphic) {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 5vw;
  align-items: center;
}
.legacy-content h6:empty {
  display: none;
}
.legacy-content .column,
.legacy-content .left,
.legacy-content .right {
  float: none;
  width: auto;
  min-width: 0;
}

/* ---------- News list: hover rows (same concept as the client list) ---------- */
.legacy-content .news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--legacy-line);
}
.legacy-content .news-list li {
  max-width: none;
  border-bottom: 1px solid var(--legacy-line);
}
.legacy-content .news-list a {
  display: block;
  padding: 26px 0;
  color: inherit;
  text-decoration: none;
}
.legacy-content .news-list .col-wrapper {
  display: grid;
  gap: 24px 5vw;
  grid-template-columns: 160px minmax(0, 1fr) 40px;
  align-items: center;
}
.legacy-content .news-list .col-wrapper::after {
  content: "↗";
  justify-self: end;
  font-size: 22px;
  color: #7b9ea5;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.4s;
}
.legacy-content .news-list .category {
  margin: 0;
}
.legacy-content .news-list h2 {
  max-width: none;
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 36px);
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.4s;
}
.legacy-content .news-list .push {
  margin: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.03s;
}
.legacy-content .news-list a:hover h2 {
  transform: translateX(20px);
  color: #3297ca;
}
.legacy-content .news-list a:hover .push {
  transform: translateX(20px);
}
.legacy-content .news-list a:hover .col-wrapper::after {
  transform: rotate(45deg);
  color: #3297ca;
}

/* ---------- Forms (contact) ---------- */
.legacy-content input,
.legacy-content textarea,
.legacy-content select {
  width: 100%;
  max-width: 560px;
  padding: 14px 16px;
  border: 1px solid var(--legacy-line);
  border-radius: 12px;
  background: #fbfbf7;
  color: var(--legacy-ink);
  font: inherit;
}
.legacy-content button,
.legacy-content input[type="submit"] {
  width: auto;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--legacy-ink);
  color: #f4f4ee;
  font: inherit;
  cursor: pointer;
}

/* ---------- 404 ---------- */
.legacy-404 {
  padding: 4vh 0 2vh;
}
.legacy-404 .mono {
  margin: 0 0 1rem;
  color: var(--legacy-muted);
}
.legacy-404-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 600;
}

/* ---------- Footer spacing ---------- */
.legacy-page .site-footer {
  border-top: 1px solid var(--legacy-line);
  margin: 0 4.3%;
  padding: 40px 0 60px;
}

@media (max-width: 900px) {
  .legacy-page .brand-caption {
    display: none;
  }
  .legacy-page .seo-nav {
    gap: 16px;
    font-size: 13px;
  }
  .legacy-page .seo-nav a:not(.seo-nav-cta):not(.legacy-lang) {
    display: none;
  }
  .legacy-content .two-columns,
  .legacy-content .centerer-layout:has(> .copy):has(> .graphic) {
    grid-template-columns: 1fr;
  }
  .legacy-content .news-list .col-wrapper {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 8px 14px;
  }
  .legacy-content .news-list .col-1 {
    grid-column: 1 / -1;
  }
}
@media print {
  .legacy-page .site-header,
  .legacy-page .site-footer {
    display: none;
  }
}
