/* Styles for the admin-managed content added in the CodeIgniter version (case studies,
   testimonials, logos, FAQ, insights, open roles, application and newsletter forms, consent).
   Built only from the existing design tokens, so it matches the original site. */

/* ---- Cards with an image --------------------------------------------------------------- */
.dyn-card { overflow: hidden; }
.dyn-card picture { display: block; margin: calc(var(--sp-5) * -1) calc(var(--sp-5) * -1) var(--sp-3); }
.dyn-card__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.dyn-more { margin-top: var(--sp-6); }
.dyn-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); color: var(--text-muted); font-weight: 700; letter-spacing: 0.04em; }

/* ---- Selected work (case studies on home, pillar and service pages) ------------------------
   The first case study is featured: a tall cover with its key results. The others stack beside
   it as horizontal cards. Covers zoom gently on hover, a numbered tag and pillar chip sit on the
   image, and the whole card is one link. */
.work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.work__all { white-space: nowrap; }
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gutter, 24px); }
.work-grid--2 { grid-template-columns: 1.25fr 1fr; }
.work-grid--3 { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; }
.work-grid--3 .work-card--feature { grid-row: span 2; }
.work-grid--1 .work-card--feature { flex-direction: row; }
.work-grid--1 .work-card--feature .work-card__media { flex: 1.2; aspect-ratio: auto; min-height: 380px; }
.work-grid--1 .work-card--feature .work-card__body { flex: 1; align-self: center; }

.work-card {
  --accent: var(--sky);
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid rgba(6, 35, 72, 0.08);
  box-shadow: 0 1px 2px rgba(6, 35, 72, 0.05), 0 14px 36px -20px rgba(6, 35, 72, 0.4);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.work-card--labs { --accent: #7fd8c3; }
.work-card--systems { --accent: #f2c879; }
.work-card--studio { --accent: #b9a6f5; }
.work-card:hover, .work-card:focus-within { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(6, 35, 72, 0.06), 0 28px 50px -22px rgba(6, 35, 72, 0.5); }
.work-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 2; background: linear-gradient(90deg, var(--blue), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease); }
.work-card:hover::after, .work-card:focus-within::after { transform: scaleX(1); }

/* Side cards: image left, text right (full card on phones) */
.work-grid--2 .work-card:not(.work-card--feature), .work-grid--3 .work-card:not(.work-card--feature) { flex-direction: row; }
.work-grid--2 .work-card:not(.work-card--feature) .work-card__media, .work-grid--3 .work-card:not(.work-card--feature) .work-card__media { flex: 0 0 42%; aspect-ratio: auto; }

.work-card__media {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.work-card--feature .work-card__media { aspect-ratio: 16 / 11; }
.work-card__media picture { position: absolute; inset: 0; }
.work-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.01); transition: transform 900ms var(--ease); }
.work-card:hover .work-card__img, .work-card:focus-within .work-card__img { transform: scale(1.07); }
.work-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 35, 72, 0) 45%, rgba(6, 35, 72, 0.55) 100%); }
.work-card__num { position: absolute; z-index: 1; top: 14px; left: 16px; padding: 4px 10px; border-radius: var(--radius-capsule); background: rgba(6, 35, 72, 0.55); backdrop-filter: blur(6px); color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.14em; }
.work-card__pillar { position: absolute; z-index: 1; left: 16px; bottom: 14px; padding: 4px 12px; border-radius: var(--radius-capsule); background: var(--white); color: var(--navy); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 6px 16px -8px rgba(6, 35, 72, 0.6); }
.work-card__pillar::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg) translateY(-1px); }

.work-card__body { flex: 1; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); }
.work-card--feature .work-card__body { padding: var(--sp-6); gap: var(--sp-4); }
.work-card__client { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.work-card__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.1875rem; line-height: 1.25; color: var(--navy); }
.work-card--feature .work-card__title { font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); }
.work-card__link { color: inherit; text-decoration: none; }
.work-card__link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.work-card__link:focus-visible { outline: none; }
.work-card:has(.work-card__link:focus-visible) { outline: 2px solid var(--blue); outline-offset: 4px; }
.work-card__summary { margin: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); }
.work-card:not(.work-card--feature) .work-card__summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.work-card__metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--sp-3); margin: 0; }
.work-card__metrics > div { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); background: var(--cloud); border-left: 3px solid var(--accent); }
.work-card__metrics dt { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem); line-height: 1.1; color: var(--navy); }
.work-card__metrics dd { margin: 4px 0 0; font-size: 0.75rem; line-height: 1.4; color: var(--text-muted); }
.work-card:not(.work-card--feature) .work-card__metrics > div { padding: var(--sp-2) var(--sp-3); }
.work-card:not(.work-card--feature) .work-card__metrics dt { font-size: 1.125rem; }

.work-card__cta { margin-top: auto; display: inline-flex; align-items: center; gap: var(--sp-2); padding-top: var(--sp-2); font-weight: 700; font-size: var(--fs-small); color: var(--blue); }
.work-card__cta .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.work-card:hover .work-card__cta .icon { transform: translateX(5px); }

@media (max-width: 900px) {
  .work-grid--2, .work-grid--3 { grid-template-columns: 1fr; }
  .work-grid--3 .work-card--feature { grid-row: auto; }
  .work-grid--1 .work-card--feature { flex-direction: column; }
  .work-grid--1 .work-card--feature .work-card__media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .work-grid--2 .work-card:not(.work-card--feature), .work-grid--3 .work-card:not(.work-card--feature) { flex-direction: column; }
  .work-grid--2 .work-card:not(.work-card--feature) .work-card__media, .work-grid--3 .work-card:not(.work-card--feature) .work-card__media { flex: none; aspect-ratio: 16 / 10; }
  .work-card--feature .work-card__body { padding: var(--sp-5); }
}
@media (prefers-reduced-motion: reduce) {
  .work-card, .work-card__img, .work-card::after, .work-card__cta .icon { transition: none; }
  .work-card:hover, .work-card:focus-within { transform: none; }
  .work-card:hover .work-card__img { transform: scale(1.01); }
}

/* ---- Footer (compact): one row of columns above a single legal bar -----------------------
   Brand + social | Services | Company | Contact | Newsletter (when on). Two rows on tablets,
   a short stack on phones with the link lists two per row. */
.ft-row { display: grid; gap: var(--sp-6) var(--gutter, 24px); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; padding-bottom: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); }
.ft-brand, .ft-news { grid-column: 1 / -1; }
.site-footer .ft-row h2 { margin-bottom: var(--sp-3); }
.site-footer .ft-row ul { gap: 2px; }

.ft-brand { display: grid; gap: var(--sp-3); align-content: start; max-width: 340px; }
.ft-brand img { width: 140px; height: auto; }
.ft-brand p { margin: 0; color: var(--navy-text-muted); font-size: var(--fs-small); line-height: 1.55; }
.ft-social { margin-top: var(--sp-2); }

.ft-touch ul { gap: var(--sp-2); }
.site-footer .ft-touch a, .ft-touch__text { display: inline-flex; align-items: flex-start; gap: var(--sp-2); min-height: 0; font-size: var(--fs-small); line-height: 1.45; }
.ft-touch__text { color: var(--navy-text-muted); }
.ft-touch .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--sky); }
.site-footer .ft-touch__cta { color: var(--sky); font-weight: 700; }
.ft-touch__cta .icon { transition: transform var(--dur) var(--ease); }
.ft-touch__cta:hover .icon { transform: translateX(4px); }

.site-footer .ft-news { display: grid; gap: var(--sp-2); align-content: start; max-width: 420px; margin: 0; }
.site-footer .ft-news h2 { margin-bottom: var(--sp-1); }
.site-footer .ft-news input[type=email] { width: 100%; min-height: 40px; }
.site-footer .ft-news .btn { justify-self: start; }
.site-footer .ft-news .dyn-check { font-size: 0.75rem; }

.site-footer .ft-bottom { margin-top: 0; padding-block: var(--sp-4); }
@media (max-width: 719px) { .ft-touch { grid-column: 1 / -1; } }

@media (min-width: 720px) {
  .ft-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; max-width: 520px; }
  .ft-news { grid-column: 1 / -1; max-width: 520px; }
  .site-footer .ft-news { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-3); max-width: 560px; }
  .site-footer .ft-news h2, .site-footer .ft-news .dyn-check, .site-footer .ft-news p, .site-footer .ft-news .cf-turnstile { grid-column: 1 / -1; }
  .site-footer .ft-news .btn { grid-row: 2; grid-column: 2; align-self: stretch; }
}
@media (min-width: 1100px) {
  /* Contact gets the widest link column so the email address fits on one line. */
  .ft-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr) minmax(0, 0.95fr) minmax(0, 1.35fr); gap: var(--sp-6) clamp(1.25rem, 0.25rem + 2vw, 2.75rem); }
  .ft-row--news { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.75fr) minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 1.1fr); }
  .ft-brand, .ft-news { grid-column: auto; }
  .site-footer .ft-news { grid-template-columns: 1fr; max-width: none; }
  .site-footer .ft-news h2, .site-footer .ft-news .dyn-check { grid-column: auto; }
  .site-footer .ft-news .btn { grid-row: auto; grid-column: auto; align-self: start; }
}

/* ---- International clients page ------------------------------------------------------------ */
.intl-regions { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.intl-regions li { padding: 5px 14px; border-radius: var(--radius-capsule); border: 1px solid var(--navy-line, rgba(148, 199, 233, 0.35)); background: rgba(255, 255, 255, 0.06); color: var(--white); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; }
.intl-regions li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 1.5px; background: var(--sky); transform: rotate(45deg) translateY(-1px); }
.intl-zones { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gutter, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.intl-zones li { display: grid; gap: var(--sp-2); padding: var(--sp-5); border-radius: var(--radius-lg); background: var(--white); border-top: 3px solid var(--blue); box-shadow: 0 12px 30px -22px rgba(6, 35, 72, 0.45); }
.intl-zones strong { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1.125rem; }
.intl-zones__off { justify-self: start; padding: 2px 10px; border-radius: var(--radius-capsule); background: var(--cloud); color: var(--blue); font-size: 0.75rem; font-weight: 700; }
.intl-zones span:last-child { color: var(--text-muted); font-size: var(--fs-small); }
.intl-hint { margin-top: var(--sp-4); color: var(--navy-text-muted, #c9ddf0); font-size: var(--fs-small); }
.intl-hint a { color: var(--sky); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.intl-hint .icon { width: 16px; height: 16px; }
.intl-note { margin-top: var(--sp-6); color: var(--text-muted); font-size: var(--fs-small); max-width: 760px; }
.intl-grid { display: grid; gap: var(--gutter, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.intl-card { padding: var(--sp-6) var(--sp-5); border-radius: var(--radius-lg); border: 1px solid rgba(6, 35, 72, 0.09); background: linear-gradient(180deg, var(--white), var(--mist)); }
.intl-card h3 { font-size: 1.25rem; margin-bottom: var(--sp-3); }
.intl-card ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--sp-2); color: var(--text-muted); font-size: var(--fs-small); line-height: 1.55; }
.intl-card strong { color: var(--navy); }

/* ---- Case studies page ------------------------------------------------------------------- */
.cs-hero .cs-results { list-style: none; margin: var(--sp-7) 0 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: 900px; }
.cs-results li { display: grid; gap: 4px; padding: var(--sp-4) var(--sp-5); border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--navy-line, rgba(148, 199, 233, 0.35)); backdrop-filter: blur(4px); }
.cs-results strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1; color: var(--sky); }
.cs-results span { color: var(--white); font-size: var(--fs-small); font-weight: 700; }
.cs-results small { color: var(--navy-text-muted, #c9ddf0); font-size: 0.75rem; letter-spacing: 0.04em; }
.cs-list .dyn-filter { margin-bottom: var(--sp-7); }
.cs-list .cs-featured { margin-bottom: var(--sp-8); }
.cs-featured .work-card__media { min-height: 440px; }
.cs-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); padding-bottom: var(--sp-3); border-bottom: 1px solid rgba(6, 35, 72, 0.1); }
.cs-count { font-size: var(--fs-xs); font-weight: 700; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.cs-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gutter, 24px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-grid .work-card:nth-child(3n + 3) { grid-column: 1 / -1; flex-direction: row; }
.cs-grid .work-card:nth-child(3n + 3) .work-card__media { flex: 0 0 50%; aspect-ratio: auto; min-height: 320px; }
.cs-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5) var(--sp-7); margin-top: var(--sp-8); padding: clamp(1.5rem, 1rem + 2vw, 3rem); border-radius: var(--radius-lg); border: 1.5px dashed rgba(13, 107, 160, 0.35);
  background: linear-gradient(rgba(13, 107, 160, 0.05) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, rgba(13, 107, 160, 0.05) 1px, transparent 1px) 0 0 / 26px 26px, var(--mist); }
.cs-next > div:first-child { max-width: 620px; display: grid; gap: var(--sp-2); }
.cs-next h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
.cs-next p { color: var(--text-muted); margin: 0; }
.cs-next__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); }
.cs-empty { display: grid; justify-items: center; gap: var(--sp-4); text-align: center; padding: var(--sp-8) var(--sp-5); border-radius: var(--radius-lg); background: var(--mist); }
.cs-empty__mark { width: 64px; height: 64px; border-radius: 18px; transform: rotate(45deg); background: linear-gradient(135deg, var(--navy), var(--blue)); box-shadow: 0 16px 30px -14px rgba(6, 35, 72, 0.6); }
@media (max-width: 900px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-grid .work-card:nth-child(3n + 3) { flex-direction: column; }
  .cs-grid .work-card:nth-child(3n + 3) .work-card__media { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .cs-featured .work-card__media { min-height: 0; }
}

/* ---- Capability concepts (home): showcase cards -------------------------------------------
   Each concept gets an icon tile and a large outlined number. On hover the card turns navy,
   the brand lattice and a soft glow appear, and the icon tilts. Pillars show as chips. */
.concepts--showcase { counter-reset: none; }
.concepts--showcase .concept {
  position: relative; overflow: hidden; isolation: isolate; gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5) var(--sp-5); border-radius: var(--radius-lg);
  border: 1px solid rgba(6, 35, 72, 0.09); background: linear-gradient(180deg, var(--white), var(--mist));
  box-shadow: 0 1px 2px rgba(6, 35, 72, 0.04), 0 12px 30px -22px rgba(6, 35, 72, 0.45);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.concepts--showcase .concept::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background:
    linear-gradient(rgba(148, 199, 233, 0.12) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(148, 199, 233, 0.12) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(150deg, var(--navy) 0%, var(--navy-raised, #0a2f5c) 55%, var(--blue) 100%);
  transition: opacity var(--dur-slow) var(--ease);
}
.concept__glow { position: absolute; z-index: -1; width: 220px; height: 220px; right: -70px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(148, 199, 233, 0.55), transparent 65%); opacity: 0.35; transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.concept__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--sp-2); }
.concept__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: var(--sky);
  box-shadow: 0 10px 22px -12px rgba(6, 35, 72, 0.7);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.concept__icon svg { width: 28px; height: 28px; }
.concept__num { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px rgba(13, 107, 160, 0.35); transition: -webkit-text-stroke-color var(--dur) var(--ease); }
.concepts--showcase .concept h3 { transition: color var(--dur) var(--ease); }
.concepts--showcase .concept p { transition: color var(--dur) var(--ease); }
.concepts--showcase .concept .pill { transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.concepts--showcase .concept__pillars { list-style: none; margin: auto 0 0; padding: var(--sp-4) 0 0; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px dashed rgba(6, 35, 72, 0.14); }
.concept__chip { padding: 3px 10px; border-radius: var(--radius-capsule); background: var(--cloud); color: var(--blue); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.concept__chip::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 1.5px; transform: rotate(45deg) translateY(-1px); background: var(--sky); }
.concept__chip--labs::before { background: #7fd8c3; }
.concept__chip--systems::before { background: #f2c879; }
.concept__chip--studio::before { background: #b9a6f5; }

.concepts--showcase .concept:hover, .concepts--showcase .concept:focus-within { transform: translateY(-8px); border-color: transparent; box-shadow: 0 30px 60px -28px rgba(6, 35, 72, 0.75); }
.concepts--showcase .concept:hover::before, .concepts--showcase .concept:focus-within::before { opacity: 1; }
.concepts--showcase .concept:hover .concept__glow { opacity: 0.9; transform: translate(-20px, 20px) scale(1.15); }
.concepts--showcase .concept:hover .concept__icon { transform: rotate(-8deg) scale(1.06); background: var(--sky); color: var(--navy); }
.concepts--showcase .concept:hover .concept__num { -webkit-text-stroke-color: rgba(148, 199, 233, 0.6); }
.concepts--showcase .concept:hover h3 { color: var(--white); }
.concepts--showcase .concept:hover p { color: var(--navy-text-muted, #c9ddf0); }
.concepts--showcase .concept:hover .pill { background: rgba(148, 199, 233, 0.18); color: var(--sky); }
.concepts--showcase .concept:hover .concept__pillars { border-top-color: rgba(148, 199, 233, 0.3); }
.concepts--showcase .concept:hover .concept__chip { background: rgba(255, 255, 255, 0.1); color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .concepts--showcase .concept, .concepts--showcase .concept::before, .concept__glow, .concept__icon { transition: none; }
  .concepts--showcase .concept:hover, .concepts--showcase .concept:focus-within { transform: none; }
  .concepts--showcase .concept:hover .concept__icon { transform: none; }
}

/* ---- Testimonials ---------------------------------------------------------------------- */
.dyn-quote blockquote { margin: 0; display: grid; gap: var(--sp-4); height: 100%; align-content: space-between; }
.dyn-quote blockquote > p { font-size: var(--fs-body); color: var(--text); line-height: 1.6; }
.dyn-quote__by { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-small); color: var(--text-muted); }
.dyn-quote__by img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.dyn-quote__by strong { display: block; color: var(--navy); }

/* ---- Client logos ("Trusted by") ---------------------------------------------------------
   A heading row with a count, then a band of logo tiles on a soft lattice. With four or more
   logos the band scrolls as a slow seamless marquee (paused on hover/focus, static when the
   visitor prefers reduced motion). Logos are calm greyscale until hovered, when they colour up,
   lift, and their name slides in. */
.trusted { overflow: hidden; }
.trusted__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4) var(--sp-7); margin-bottom: var(--sp-6); }
.trusted__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
.trusted__stat { display: flex; align-items: center; gap: var(--sp-3); max-width: 360px; margin: 0; font-size: var(--fs-small); color: var(--text-muted); }
.trusted__stat strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); line-height: 1; color: var(--navy); background: linear-gradient(120deg, var(--navy), var(--blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.trusted__stage {
  position: relative; display: flex; gap: var(--sp-4); padding: var(--sp-6) 0;
  background:
    linear-gradient(rgba(13, 107, 160, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(13, 107, 160, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, var(--mist), var(--cloud));
  border-block: 1px solid rgba(6, 35, 72, 0.06);
}
.trusted__stage:not(.trusted__stage--marquee) { justify-content: center; padding-inline: var(--sp-4); }
.trusted__stage--marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.trusted__track { list-style: none; margin: 0; padding: 0; display: flex; flex: none; gap: var(--sp-4); align-items: stretch; }
.trusted__stage:not(.trusted__stage--marquee) .trusted__track { flex-wrap: wrap; justify-content: center; }
.trusted__stage--marquee .trusted__track { animation: trusted-scroll calc(var(--n, 6) * 4.5s) linear infinite; }
.trusted__stage--marquee:hover .trusted__track, .trusted__stage--marquee:focus-within .trusted__track { animation-play-state: paused; }
@keyframes trusted-scroll { to { transform: translateX(calc(-100% - var(--sp-4))); } }

.trusted__tile a, .trusted__inner {
  position: relative; display: grid; place-items: center; width: 200px; height: 104px; padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius); background: var(--white); border: 1px solid rgba(6, 35, 72, 0.07);
  box-shadow: 0 1px 2px rgba(6, 35, 72, 0.04), 0 10px 24px -18px rgba(6, 35, 72, 0.4);
  overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.trusted__tile a::before, .trusted__inner::before {
  content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--sky));
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease);
}
.trusted__tile img { max-width: 100%; height: 40px; width: auto; object-fit: contain; filter: grayscale(1) contrast(0.9); opacity: 0.7; transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.trusted__name { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); opacity: 0; transform: translateY(6px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.trusted__tile:hover a, .trusted__tile:hover .trusted__inner, .trusted__tile a:focus-visible { transform: translateY(-4px); border-color: rgba(13, 107, 160, 0.25); box-shadow: 0 2px 4px rgba(6, 35, 72, 0.05), 0 18px 34px -18px rgba(6, 35, 72, 0.5); }
.trusted__tile:hover a::before, .trusted__tile:hover .trusted__inner::before, .trusted__tile a:focus-visible::before { transform: scaleX(1); }
.trusted__tile:hover img, .trusted__tile a:focus-visible img { filter: none; opacity: 1; transform: translateY(-7px); }
.trusted__tile:hover .trusted__name, .trusted__tile a:focus-visible .trusted__name { opacity: 1; transform: none; }
.trusted__tile a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (max-width: 640px) {
  .trusted__tile a, .trusted__inner { width: 160px; height: 92px; }
  .trusted__stat { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .trusted__stage--marquee { -webkit-mask-image: none; mask-image: none; justify-content: center; padding-inline: var(--sp-4); }
  .trusted__stage--marquee .trusted__track { animation: none; flex-wrap: wrap; justify-content: center; }
  .trusted__stage--marquee .trusted__track[aria-hidden] { display: none; }
  .trusted__tile a, .trusted__inner, .trusted__tile img, .trusted__name { transition: none; }
}

/* ---- FAQ ------------------------------------------------------------------------------- */
.dyn-faq { display: grid; gap: var(--sp-3); max-width: 860px; }
.dyn-faq__item { background: var(--white); border-radius: var(--radius); padding: 0 var(--sp-5); }
.dyn-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center; padding: var(--sp-5) 0; font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.dyn-faq__item summary::-webkit-details-marker { display: none; }
.dyn-faq__item summary .icon { width: 20px; height: 20px; flex: none; transition: transform var(--dur) var(--ease); }
.dyn-faq__item[open] summary .icon { transform: rotate(45deg); }
.dyn-faq__item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: var(--radius-sm); }
.dyn-faq__item .prose { padding-bottom: var(--sp-5); color: var(--text-muted); }

/* ---- Article (insight, case study, job) ------------------------------------------------ */
.dyn-article { max-width: 760px; }
.dyn-article .prose { font-size: var(--fs-body); line-height: 1.7; }
.dyn-article .prose h2 { font-size: var(--fs-h3, 1.5rem); margin-top: var(--sp-7); }
.dyn-article .prose h3 { margin-top: var(--sp-6); }
.dyn-article .prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.dyn-article .prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.dyn-article .prose blockquote { margin: 0; padding-left: var(--sp-5); border-left: 3px solid var(--sky); color: var(--navy); }
.dyn-cover { display: block; margin: 0 0 var(--sp-7); }
.dyn-cover img { width: 100%; height: auto; border-radius: var(--radius); }
.dyn-metrics { list-style: none; margin: var(--sp-6) 0; padding: 0; display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.dyn-metrics li { padding: var(--sp-5); border-radius: var(--radius); background: var(--cloud); }
.dyn-metrics strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); color: var(--navy); }
.dyn-gallery { list-style: none; margin: var(--sp-6) 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dyn-gallery img { width: 100%; height: auto; border-radius: var(--radius-sm); }

/* ---- Open roles ------------------------------------------------------------------------ */
.dyn-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.dyn-job { position: relative; display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3) var(--sp-5); align-items: center; padding: var(--sp-5); border-radius: var(--radius); background: var(--white); border-left: 3px solid var(--blue); }
.dyn-job h3 { font-size: 1.25rem; }
.dyn-job p { color: var(--text-muted); font-size: var(--fs-small); }
@media (max-width: 640px) { .dyn-job { grid-template-columns: 1fr; } }

/* ---- Forms outside the contact page (application, newsletter) ------------------------- */
.dyn-form { display: grid; gap: var(--sp-4); max-width: 720px; }
.dyn-form__grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dyn-form label { display: block; font-weight: 700; font-size: var(--fs-small); color: var(--navy); margin-bottom: var(--sp-1, 4px); }
.dyn-form input:not([type=checkbox]):not([type=hidden]), .dyn-form textarea, .dyn-form select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line, #c9d4e3); background: var(--white); font: inherit; color: var(--text);
}
.dyn-form textarea { min-height: 140px; resize: vertical; }
.dyn-form input:focus-visible, .dyn-form textarea:focus-visible, .dyn-form select:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.dyn-form .dyn-hint { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px; }
.dyn-form .dyn-check { display: flex; gap: var(--sp-3); align-items: flex-start; font-weight: 400; }
.dyn-form .dyn-check input { margin-top: 4px; }
.dyn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dyn-alert { padding: var(--sp-4) var(--sp-5); border-radius: var(--radius); background: var(--cloud); color: var(--navy); font-weight: 700; }
.dyn-alert--error { background: #fdecec; color: #8a1c1c; }
.dyn-alert ul { margin: var(--sp-2) 0 0; padding-left: 1.2em; font-weight: 400; }

/* Footer newsletter row */
.dyn-newsletter { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); max-width: 420px; }
.dyn-newsletter__row { display: flex; gap: var(--sp-2); }
.dyn-newsletter input[type=email] { flex: 1; min-width: 0; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--navy-line, rgba(255,255,255,.25)); background: transparent; color: var(--white); font: inherit; }
.dyn-newsletter input[type=email]::placeholder { color: var(--navy-text-muted, rgba(255,255,255,.65)); }
.dyn-newsletter p { font-size: var(--fs-xs); color: var(--navy-text-muted, rgba(255,255,255,.7)); }

/* ---- Cookie consent -------------------------------------------------------------------- */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; display: grid; gap: var(--sp-3); padding: var(--sp-5); border-radius: var(--radius); background: var(--navy); color: var(--white); box-shadow: 0 18px 40px rgba(3, 18, 40, 0.35); }
.consent[hidden] { display: none; }
.consent p { font-size: var(--fs-small); color: var(--navy-text-muted, rgba(255,255,255,.8)); }
.consent a { color: var(--sky); text-decoration: underline; }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.consent .btn--ghost { --btn-fg: var(--white); }
/* "Cookie settings" in the footer: a button that looks like the legal links next to it. */
.site-footer__linkbtn { padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-xs); color: var(--navy-text-muted); cursor: pointer; }
.site-footer__linkbtn:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__linkbtn:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

/* ---- Team cards (About › Leadership), once real profiles replace the placeholder card ----
   A navy "stage" with the brand lattice and rotated diamonds, a ringed portrait that overlaps
   it, the number, unit, name, role and bio. Hover lifts the card and turns the diamonds. */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gutter, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.team-card {
  --accent: var(--sky);
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid rgba(6, 35, 72, 0.08);
  box-shadow: 0 1px 2px rgba(6, 35, 72, 0.05), 0 12px 32px -18px rgba(6, 35, 72, 0.35);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.team-card--labs { --accent: #7fd8c3; }
.team-card--systems { --accent: #f2c879; }
.team-card--studio { --accent: #b9a6f5; }
.team-card:hover, .team-card:focus-within { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(6, 35, 72, 0.06), 0 26px 48px -20px rgba(6, 35, 72, 0.45); }
.team-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--accent)); transform: scaleX(0.18); transform-origin: left; transition: transform var(--dur-slow) var(--ease); }
.team-card:hover::after, .team-card:focus-within::after { transform: scaleX(1); }

.team-card__stage {
  position: relative; height: 118px; overflow: hidden;
  background:
    linear-gradient(rgba(148, 199, 233, 0.14) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(148, 199, 233, 0.14) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-raised, #0a2f5c) 60%, var(--blue) 100%);
}
.team-card__num { position: absolute; top: 14px; left: 18px; font-family: var(--font-display); font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.16em; color: var(--accent); }
.team-card__diamond { position: absolute; right: -18px; top: -22px; width: 110px; height: 110px; border: 1.5px solid color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 18px; transform: rotate(45deg); transition: transform var(--dur-slow) var(--ease); }
.team-card__diamond--sm { right: 62px; top: 52px; width: 30px; height: 30px; border-radius: 7px; border: 0; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.team-card:hover .team-card__diamond { transform: rotate(90deg); }
.team-card:hover .team-card__diamond--sm { transform: rotate(45deg) translate(-6px, -6px); }

.team-card__photo {
  position: relative; z-index: 1; width: 132px; height: 132px; margin: -66px auto 0; border-radius: 50%;
  padding: 5px; background: conic-gradient(from 210deg, var(--accent), var(--blue), var(--navy), var(--accent));
  box-shadow: 0 12px 28px -12px rgba(6, 35, 72, 0.55);
  transition: transform var(--dur) var(--ease);
}
.team-card__photo picture, .team-card__photo > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 4px solid var(--white); background: var(--cloud); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card__photo > span { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--navy); }
.team-card:hover .team-card__photo { transform: scale(1.04); }

.team-card__body { flex: 1; display: grid; align-content: start; gap: var(--sp-2); padding: var(--sp-5) var(--sp-5) var(--sp-4); text-align: center; }
.team-card__unit { justify-self: center; margin: 0; padding: 3px 12px; border-radius: var(--radius-capsule); background: var(--cloud); color: var(--blue); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.team-card__unit--empty { visibility: hidden; } /* keeps names aligned when only some cards have a pillar */
.team-card__name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.2; color: var(--navy); }
.team-card__role { margin: 0; font-weight: 700; font-size: var(--fs-small); color: var(--blue); }
.team-card__bio { margin: var(--sp-2) 0 0; font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); text-align: left; }

.team-card__link {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  margin: 0 var(--sp-5) var(--sp-5); padding: 10px 14px; border-radius: var(--radius-capsule);
  border: 1.5px solid rgba(6, 35, 72, 0.14); color: var(--navy); font-weight: 700; font-size: var(--fs-xs);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.team-card__link .social__icon { width: 16px; height: 16px; fill: currentColor; }
.team-card__link:hover, .team-card__link:focus-visible { background: var(--navy); border-color: var(--navy); color: var(--white); }
.team-card__link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .team-card, .team-card__photo, .team-card__diamond, .team-card::after { transition: none; }
  .team-card:hover, .team-card:focus-within { transform: none; }
}
.dyn-job a.stretched::after, .dyn-card a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.dyn-job, .dyn-card { position: relative; }
.dyn-filter { margin-bottom: var(--sp-6); }
.dyn-filter .chip[aria-current] { background: var(--navy); color: var(--white); }
.dyn-newsletter h2 { margin-bottom: var(--sp-1, 4px); }
.dyn-newsletter .dyn-check { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-xs); color: var(--navy-text-muted, rgba(255,255,255,.75)); }
.dyn-newsletter .dyn-check input { margin-top: 3px; }

/* ---- Multi-step enquiry (form-steps.js) ---- */
.enquiry.is-stepped [hidden] { display: none !important; }
.steps-bar { list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--sp-2); counter-reset: s; }
.steps-bar li { display: flex; align-items: center; gap: var(--sp-2); padding-top: var(--sp-3); border-top: 3px solid var(--line, #d8e0ea); color: var(--text-muted); font-size: var(--fs-small); font-weight: 700; min-width: 0; transition: border-color .3s, color .3s; }
.steps-bar__n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cloud); color: var(--navy); font-size: 12px; }
.steps-bar__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps-bar li.is-done, .steps-bar li[aria-current] { border-color: var(--navy); color: var(--navy); }
.steps-bar li[aria-current] .steps-bar__n { background: var(--navy); color: var(--white); }
.steps-bar li.is-done .steps-bar__n { background: var(--sky); }
@media (max-width: 479.98px) { .steps-bar li:not([aria-current]) .steps-bar__l { display: none; } }

/* ---- Project cost estimator (/estimate) ---- */
.est { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 960px) { .est { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.est__form { background: var(--white); border-radius: var(--radius-lg, 20px); padding: clamp(20px, 4vw, 40px); box-shadow: 0 20px 50px -30px rgba(6, 35, 72, .35); min-width: 0; }
.est__form.is-stepped [hidden] { display: none !important; }
.est__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.est__step + .est__step { margin-top: var(--sp-6); }
.est__form.is-stepped .est__step + .est__step { margin-top: 0; }
.est__step legend { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--font-display, inherit); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--navy); margin-bottom: var(--sp-5); padding: 0; }
.est__num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 1rem; }
.est__sub { margin: var(--sp-4) 0 var(--sp-3); color: var(--text-muted); font-weight: 700; font-size: var(--fs-small); }
.est__choices { display: grid; gap: var(--sp-3); }
.est__choices--types { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.est__choices--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.est__choices--chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.est-choice, .est-chip { position: relative; cursor: pointer; }
.est-choice input, .est-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.est-choice__box { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .2s, box-shadow .2s, background .2s; }
.est-choice__box strong { color: var(--navy); font-size: .98rem; line-height: 1.3; }
.est-choice__box small { color: var(--text-muted); font-size: var(--fs-small); }
.est-choice--sm .est-choice__box { text-align: center; place-content: center; min-height: 56px; }
.est-choice:hover .est-choice__box { border-color: var(--sky); }
.est-choice input:checked + .est-choice__box { border-color: var(--navy); background: var(--cloud); box-shadow: -4px 4px 0 0 var(--sky); }
.est-choice input:focus-visible + .est-choice__box, .est-chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.est-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; font-size: var(--fs-small); color: var(--navy); background: var(--white); transition: background .2s, border-color .2s, color .2s; }
.est-chip span::before { content: "+"; font-weight: 800; }
.est-chip:hover span { border-color: var(--sky); }
.est-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.est-chip input:checked + span::before { content: "✓"; }
.est__nav { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.est__nav [data-est-next] { margin-left: auto; }
.est__result { position: sticky; top: 110px; min-width: 0; }
.est-card { background: var(--navy); color: var(--white); border-radius: var(--radius-lg, 20px); padding: clamp(22px, 3vw, 32px); box-shadow: -8px 8px 0 0 var(--sky); }
.est-card .eyebrow { color: var(--sky); margin: 0; }
.est-card__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.est-card__cur { background: var(--navy-raised, #0b2f5c); color: var(--white); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 6px 10px; font-weight: 700; }
.est-card__range { font-family: var(--font-display, inherit); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; margin: var(--sp-4) 0 var(--sp-2); overflow-wrap: anywhere; }
.est-card__weeks { color: var(--sky); font-weight: 700; margin: 0 0 var(--sp-4); }
.est-card__weeks:empty { display: none; }
.est-card .est-card__lines { margin: 0 0 var(--sp-4); padding: var(--sp-4) 0 0; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 6px; font-size: var(--fs-small); color: rgba(255,255,255,.85); }
.est-card__lines:empty { display: none; }
.est-card__note { font-size: var(--fs-small); color: rgba(255,255,255,.7); margin: 0 0 var(--sp-3); }
.est-card__alt { font-size: var(--fs-small); margin: 0; }
.est-card__alt a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 959.98px) { .est__result { position: static; order: -1; } }

/* ---- Guides & downloads (/resources) ---- */
.res-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.section .res-grid { margin: 0; padding: 0; }
.res-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 18px 40px -28px rgba(6, 35, 72, .35); transition: transform .3s, box-shadow .3s; }
.res-card:hover { transform: translateY(-4px); box-shadow: -6px 6px 0 0 var(--sky), 0 18px 40px -28px rgba(6, 35, 72, .35); }
.res-card__cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--navy-raised)); display: grid; place-items: center; position: relative; overflow: hidden; }
.res-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.res-card__cover[data-empty]::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(141, 198, 255, .35), transparent 55%); }
.res-card__doc { position: relative; z-index: 1; width: 92px; height: 116px; background: var(--white); border-radius: 6px 22px 6px 6px; box-shadow: -6px 6px 0 0 var(--sky); display: grid; align-content: end; padding: 12px; transform: rotate(-4deg); }
.res-card__doc span { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1rem; }
.res-card__body { display: grid; gap: var(--sp-3); padding: var(--sp-5); align-content: start; flex: 1; }
.res-card__body > .btn { justify-self: start; margin-top: auto; }
.res-card__meta { margin: 0; color: var(--text-muted); font-size: var(--fs-small); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.res-card__title { font-size: 1.25rem; margin: 0; color: var(--navy); }
.res-card__body p { margin: 0; }
.res-form { display: grid; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.res-form[hidden], .res-form [hidden] { display: none !important; }
.res-form .btn { justify-self: start; }
.res-form .form-status:empty { display: none; }

/* ---- Booking (Contact) and floating WhatsApp button ---- */
.reach__card--book { text-decoration: none; color: inherit; background: var(--navy); color: var(--white); }
.reach__card--book h3 { color: var(--sky); }
.reach__card--book p { display: flex; align-items: center; gap: 6px; font-weight: 700; margin: 0; }
.reach__card--book .reach__icon { background: var(--sky); color: var(--navy); }
.reach__card--book:hover { box-shadow: -5px 5px 0 0 var(--sky); }
.book__frame { background: var(--white); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); display: grid; gap: var(--sp-4); justify-items: start; box-shadow: 0 18px 40px -28px rgba(6, 35, 72, .35); }
.book__frame.is-loaded { padding: 0; overflow: hidden; }
.book__frame iframe { width: 100%; height: min(760px, 85vh); border: 0; display: block; }
.wa-float { position: fixed; left: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px; background: #1f8a4c; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); transition: transform .25s, box-shadow .25s; }
.wa-float .icon { width: 24px; height: 24px; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .5); color: #fff; }
.wa-float:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
@media (max-width: 639.98px) { .wa-float { padding: 0; width: 52px; justify-content: center; } .wa-float__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media print { .wa-float { display: none; } }

/* ---- Campaign landing pages (/lp/…) ---- */
.lp-hero__grid { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 1000px) { .lp-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.lp-hero__copy { min-width: 0; }
.lp-draft { display: inline-block; background: var(--sky); color: var(--navy); font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: var(--fs-small); }
.hero .lp-ticks, .lp-ticks { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.lp-ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.lp-ticks .icon { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--sky); color: var(--navy); margin-top: 2px; }
.lp-form { background: var(--white); color: var(--text); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); display: grid; gap: var(--sp-3); box-shadow: -8px 8px 0 0 var(--sky), 0 30px 60px -30px rgba(0, 0, 0, .5); min-width: 0; }
.lp-form__title { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin: 0; color: var(--navy); }
.lp-form__sub { margin: -4px 0 var(--sp-2); color: var(--text-muted); font-size: var(--fs-small); }
.lp-form__pair { display: grid; gap: var(--sp-3); }
@media (min-width: 520px) { .lp-form__pair { grid-template-columns: 1fr 1fr; } }
.lp-form .field label { color: var(--navy); }
.lp-form [hidden] { display: none !important; }
.lp-form .form-status:empty { display: none; }
.btn--block { width: 100%; justify-content: center; }
.lp-end__grid { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 1000px) { .lp-end__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.lp-form .lp-form__sub, .lp-form .field__label-opt, .lp-form .check span { color: #5a6a80; }
.lp-form .check a { color: var(--navy); }
.lp-form .field__error { color: #b3261e; }

/* ---- Home hero: longer outcome-led headline from Settings › Home hero ---- */
.home-hero .display.display--long { font-size: clamp(2.3rem, 5.4vw, 4.6rem); max-width: 17ch; line-height: 1.04; }

/* ---- Trust strip (home, under the story) ---- */
.trust-strip { position: relative; z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); padding: clamp(36px, 6vw, 64px) 0; }
.trust-strip__title { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); text-align: center; margin: 0 0 var(--sp-5); font-weight: 800; font-family: var(--font-display); }
.trust-strip .trust-strip__stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: var(--sp-4); }
.trust-strip__stats li { display: grid; gap: 4px; text-align: center; padding: var(--sp-4) var(--sp-3); border-radius: var(--radius); background: var(--cloud); position: relative; overflow: hidden; }
.trust-strip__stats li::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 36px; height: 3px; margin-left: -18px; background: var(--sky); border-radius: 3px 3px 0 0; }
.trust-strip__stats strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--navy); line-height: 1.05; }
.trust-strip__stats span { color: var(--text-muted); font-size: var(--fs-small); }
.trust-strip__foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-4) var(--sp-6); margin-top: var(--sp-5); }
.trust-strip__regions { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: var(--fs-small); color: var(--text-muted); max-width: 70ch; }
.trust-strip__regions .icon { flex: none; color: var(--navy); margin-top: 2px; }
.trust-strip__regions strong { color: var(--navy); }
.trust-strip__regions a { color: var(--navy); font-weight: 700; }
.trust-strip .trust-strip__badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.trust-strip__badges a, .trust-strip__badges span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: var(--fs-small); font-weight: 700; color: var(--navy); text-decoration: none; background: var(--white); }
.trust-strip__badges .icon { width: 16px; height: 16px; color: #1f8a4c; }
.trust-strip__badges img { height: 32px; width: auto; }
.trust-strip__badges a:hover { border-color: var(--sky); }

/* ---- Founder note (About, home) ---- */
.founder__card { margin: 0; display: grid; gap: var(--sp-6); align-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-raised)); color: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 56px); position: relative; overflow: hidden; box-shadow: -10px 10px 0 0 var(--sky); }
.founder__card::before { content: "\201C"; position: absolute; right: clamp(16px, 4vw, 48px); top: -30px; font-family: Georgia, serif; font-size: 16rem; line-height: 1; color: rgba(141, 198, 255, .14); pointer-events: none; }
@media (min-width: 860px) { .founder__card { grid-template-columns: 240px minmax(0, 1fr); } }
.founder__side { display: grid; gap: var(--sp-4); justify-items: center; text-align: center; }
.founder__photo { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 4px solid var(--sky); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__photo img[src$=".svg"] { width: 72px; height: 72px; object-fit: contain; }
.founder__who { display: grid; gap: 4px; }
.founder__who strong { font-family: var(--font-display); font-size: 1.15rem; }
.founder__who span { color: rgba(255, 255, 255, .75); font-size: var(--fs-small); }
.founder__who a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--sky); font-weight: 700; font-size: var(--fs-small); }
.founder__who .social__icon { width: 16px; height: 16px; }
.founder__quote { margin: 0; position: relative; z-index: 1; display: grid; gap: var(--sp-4); }
.founder__quote .eyebrow { color: var(--sky); margin: 0; }
.founder__quote p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 62ch; }
.founder__quote .founder__lead { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.35; color: var(--white); }
.founder__sig { height: 56px; width: auto; filter: invert(1) brightness(2); opacity: .9; }

@media (max-width: 479.98px) { .steps-bar { display: flex; } .steps-bar li { flex: 0 0 auto; padding-right: var(--sp-2); } .steps-bar li[aria-current] { flex: 1 1 auto; } }

/* ---- Resources: share and single page ---- */
.res-card__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: auto; }
.res-share .icon { width: 16px; height: 16px; }
.res-share__out { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.res-share__out[hidden] { display: none; }
.res-share__out input { flex: 1 1 220px; min-width: 0; font-size: var(--fs-small); padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--cloud); color: var(--navy); }
.res-share__msg { font-size: var(--fs-small); font-weight: 700; color: #1f8a4c; }
.res-single .res-card--single { max-width: 860px; margin: 0 auto; }
@media (min-width: 760px) { .res-card--single { flex-direction: row; } .res-card--single .res-card__cover { flex: 0 0 300px; aspect-ratio: auto; } }
.res-card--single .res-card__title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.res-card--single:hover { transform: none; }
.res-card__title a { color: inherit; text-decoration: none; }
.res-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.res-single__more { text-align: center; margin: var(--sp-5) 0 0; }

/* ---- Built-in captcha (Settings › Captcha) ---- */
.captcha__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha__row img { width: 160px; height: 52px; border-radius: 8px; border: 1.5px solid var(--line); background: #eef3f9; }
.captcha__new { background: none; border: 0; padding: 4px 0; color: var(--navy); font-weight: 700; font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.captcha input { max-width: 200px; text-transform: uppercase; letter-spacing: .2em; }
.captcha--dark .captcha__new, .captcha--dark label { color: var(--white); }

/* ---- Media coverage (/media-coverage) ---- */
.press-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.press-card { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 18px 40px -28px rgba(6, 35, 72, .35); transition: transform .3s, box-shadow .3s; }
.press-card:hover { transform: translateY(-4px); box-shadow: -6px 6px 0 0 var(--sky), 0 18px 40px -28px rgba(6, 35, 72, .35); }
.press-card--featured { grid-column: 1 / -1; border-left: 4px solid var(--accent, var(--blue)); }
.press-card--featured .press-card__title { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.press-card__head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.press-card__logo img { display: block; height: 28px; width: auto; max-width: 120px; object-fit: contain; }
.press-card__outlet { margin: 0; font-weight: 800; color: var(--navy); }
.press-card__kind { margin-left: auto; padding: 2px 10px; border-radius: var(--radius-capsule); background: var(--cloud); color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.press-card__title { margin: 0; font-size: 1.2rem; color: var(--navy); }
.press-card__title a { color: inherit; text-decoration: none; }
.press-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* whole card is the link */
.press-card__title a:focus-visible { outline: none; }
.press-card:focus-within { box-shadow: 0 0 0 3px var(--cloud), 0 0 0 5px var(--blue); }
.press-card__excerpt { margin: 0; color: var(--text-muted); }
.press-card__foot { margin: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); font-size: var(--fs-small); color: var(--text-muted); }
.press-card__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); }
.press-card__cta .icon { width: 16px; height: 16px; }
.press-contact { margin: var(--sp-6) 0 0; text-align: center; }

/* ---- Gallery (/gallery, /gallery/<album>) ---- */
.album-grid { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.album-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 18px 40px -28px rgba(6, 35, 72, .35); transition: transform .3s, box-shadow .3s; }
.album-card[hidden] { display: none; }
.album-card:hover { transform: translateY(-4px); box-shadow: -6px 6px 0 0 var(--sky), 0 18px 40px -28px rgba(6, 35, 72, .35); }
.album-card:focus-within { box-shadow: 0 0 0 3px var(--cloud), 0 0 0 5px var(--blue); }
.album-card__media { position: relative; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--navy), var(--navy-raised, var(--navy))); overflow: hidden; }
.album-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.album-card:hover .album-card__media img { transform: scale(1.04); }
.album-card__play, .video-card__play { position: absolute; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: 0 8px 24px rgba(6, 35, 72, .35); }
.album-card__play { right: 12px; bottom: 12px; width: 44px; height: 44px; }
.album-card__body { display: grid; gap: var(--sp-2); padding: var(--sp-5); }
.album-card__title { margin: 0; font-size: 1.2rem; color: var(--navy); }
.album-card__title a { color: inherit; text-decoration: none; }
.album-card__title a::after { content: ""; position: absolute; inset: 0; }
.album-card__title a:focus-visible { outline: none; }
.album-card__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-muted); font-size: var(--fs-small); font-weight: 700; }
.album-card__summary { margin: 0; }
.dyn-filter .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.dyn-filter button.chip { cursor: pointer; font: inherit; }

.album-h { margin: 0 0 var(--sp-4); font-size: 1.35rem; color: var(--navy); }
.album-h:not(:first-child) { margin-top: var(--sp-7); }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.photo-grid a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--cloud); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-grid a:hover img, .photo-grid a:focus-visible img { transform: scale(1.05); }
.photo-grid a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.video-card__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-raised, var(--navy))); }
.video-card__frame img, .video-card__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-card__play { left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%); border: 0; cursor: pointer; transition: transform .2s; }
.video-card__play:hover, .video-card__play:focus-visible { transform: translate(-50%, -50%) scale(1.08); }
.video-card__play:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.video-card__caption { margin: var(--sp-2) 0 0; font-size: var(--fs-small); }
.video-card__caption a { white-space: nowrap; }
.video-note { margin: var(--sp-3) 0 0; font-size: var(--fs-small); color: var(--text-muted); }
.album-back { margin: var(--sp-7) 0 0; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px 64px; border: 0; background: rgba(4, 18, 38, .94); color: var(--white); }
.lightbox::backdrop { background: rgba(4, 18, 38, .7); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; display: grid; gap: var(--sp-3); justify-items: center; max-height: 100%; }
.lightbox__figure img { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 6px; }
.lightbox__figure figcaption { font-size: var(--fs-small); text-align: center; opacity: .85; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgba(255, 255, 255, .28); outline: none; box-shadow: 0 0 0 2px var(--white); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599.98px) { .lightbox { padding: 56px 8px 72px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; } }

/* ---- Internship form (link-only) ---- */
.intern-facts { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.intern-facts li { display: grid; gap: 2px; padding: var(--sp-4); border-radius: var(--radius); background: var(--cloud); border-left: 3px solid var(--accent, var(--blue)); }
.intern-facts span { font-size: var(--fs-small); color: var(--text-muted); font-weight: 700; }
.intern-facts strong { color: var(--navy); }
