/* Content from data/*.json: product models on the product pages, and "Our projects" on home. */

/* product models */
.detail-catalog[hidden] { display: none; }
.detail-catalog { margin: 40px 0 56px; }
.detail-catalog > h2 { margin: 0 0 22px; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pc-card { display: flex; flex-direction: column; border: 1px solid #e6eaf1; border-radius: 16px; background: #fff; overflow: hidden; }
.pc-img { aspect-ratio: 4 / 3; background: #f3f6fa; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.pc-body { padding: 20px 22px 24px; }
.pc-brand { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #2b5fe3; }
.pc-body h3 { margin: 0; font-size: 19px; font-weight: 500; line-height: 1.4; color: #0a1730; }
.pc-model { margin: 4px 0 0; font-size: 13px; color: #6a7a96; }
.pc-sum { margin: 12px 0 0; font-size: 14px; line-height: 1.75; color: #4a5872; }
.pc-specs { margin: 16px 0 0; display: grid; gap: 0; border-top: 1px solid #edf0f5; }
.pc-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #edf0f5; font-size: 13px; }
.pc-specs dt { color: #6a7a96; }
.pc-specs dd { margin: 0; color: #0a1730; font-weight: 500; text-align: right; }

/* our projects */
.rp[hidden] { display: none; }
.rp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.rp-card { min-width: 0; }
.rp-img { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #eef2f8; }
.rp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rp-card:hover .rp-img img { transform: scale(1.03); }
.rp-tag { position: absolute; left: 16px; bottom: 14px; padding: 5px 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.94); font-size: 10px; letter-spacing: 0.08em; color: #0a1730; }
.rp-copy { padding: 20px 0 0; }
.rp-copy h3 { margin: 0; font-size: 21px; font-weight: 500; line-height: 1.5; color: #0a1730; }
.rp-meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: #6a7a96; }
.rp-sum { margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: #4a5872; }
@media (max-width: 900px) { .rp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rp-grid { grid-template-columns: minmax(0, 1fr); } .pc-grid { grid-template-columns: minmax(0, 1fr); } }

/* squeeze carousel (squeeze.js) — articles on the home page */
.sq { container-type: inline-size; display: flex; flex-direction: column; width: 100%;
  --sq-slat: 8px; --sq-slat-gap: 8px; --sq-gap: 16px; --sq-radius: 8px; --sq-ms: 1000ms; --sq-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sq-fill: #2b5fe3; --sq-on-fill: #fff; }
.sq-controls { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 16px; }
.sq-arrow { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: var(--sq-fill); color: var(--sq-on-fill); cursor: pointer; transition: opacity 0.2s; }
.sq-arrow:hover { opacity: 0.85; }
.sq-arrow:focus-visible, .sq-card:focus-visible, .sq-action:focus-visible { outline: 2px solid var(--sq-fill); outline-offset: 3px; }
.sq-view { width: 100%; overflow: hidden;
  --sq-h: clamp(180px, 32cqi, 340px); --sq-hero: calc(var(--sq-h) * 16 / 9);
  --sq-room: calc(100cqi - var(--sq-hero) - var(--sq-slats) * var(--sq-slat-gap) - 3 * var(--sq-gap) - var(--sq-slats) * var(--sq-slat));
  height: var(--sq-h); }
.sq-strip { display: flex; height: 100%; width: max-content; transition: transform var(--sq-ms) var(--sq-ease); }
.sq-card { position: relative; isolation: isolate; flex: none; height: 100%; padding: 0; border: 0; overflow: hidden; background: #e6ebf3; cursor: pointer;
  transition: width var(--sq-ms) var(--sq-ease), margin-left var(--sq-ms) var(--sq-ease), border-radius var(--sq-ms) var(--sq-ease); }
/* each picture is drawn at one 16:9 block and centred, so narrowing a card only crops it */
.sq-card img, .sq-fill { position: absolute; top: 0; left: 50%; height: 100%; width: var(--sq-hero); min-width: 100%; max-width: none; transform: translateX(-50%); object-fit: cover; }
.sq-fill { background: linear-gradient(135deg, #13254a, #2b5fe3); }
.sq-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; padding: 56px 20px 18px; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em;
  opacity: 0; transition: opacity var(--sq-ms) var(--sq-ease); }
.sq-card.is-front .sq-overlay { opacity: 1; }
.sq-panel { display: grid; margin-top: 24px; }
.sq-item { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 16px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s; }
/* the old copy clears quickly; the new one follows straight after, while the row is still sliding */
.sq-item.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity 0.45s ease 0.12s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, visibility 0s; }
.sq-item p { margin: 0; max-width: 46rem; font-size: 15px; line-height: 1.65; text-wrap: balance; }
.sq-title { color: var(--ink, #0a1730); font-weight: 500; }
.sq-desc { color: var(--ink-soft, #6a7a96); }
.sq-action { align-self: flex-start; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 8px; background: var(--sq-fill); color: var(--sq-on-fill); font-size: 14px; font-weight: 500; white-space: nowrap; transition: opacity 0.2s; }
.sq-action:hover { opacity: 0.85; text-decoration: none; }
.sq-action svg { transition: transform 0.2s; }
.sq-action:hover svg { transform: translateX(2px); }
@container (min-width: 36rem) {
  .sq-item { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 40px; }
  .sq-item p { font-size: 17px; }
  .sq-panel { margin-top: 28px; }
}
/* narrow screens: the open panel keeps most of the width, the rest stay readable as slivers */
@container (max-width: 40rem) {
  .sq-view { --sq-gap: 8px; --sq-hero: calc(100cqi - 72px); --sq-h: calc(var(--sq-hero) * 0.66); }
}
/* a still layout: the strip is tidied up and nothing may be seen to move */
.sq.is-still .sq-strip, .sq.is-still .sq-card, .sq.is-still .sq-overlay, .sq.is-still .sq-item { transition: none !important; }
body.motion-enabled .sq:not(.is-still) .sq-strip { transition: transform var(--sq-ms) var(--sq-ease) !important; }
body.motion-enabled .sq:not(.is-still) .sq-card { transition: width var(--sq-ms) var(--sq-ease), margin-left var(--sq-ms) var(--sq-ease), border-radius var(--sq-ms) var(--sq-ease) !important; }
body.motion-enabled .sq:not(.is-still) .sq-overlay { transition: opacity var(--sq-ms) var(--sq-ease) !important; }
body.motion-enabled .sq:not(.is-still) .sq-item { transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s !important; }
body.motion-enabled .sq:not(.is-still) .sq-item.is-on { transition: opacity 0.45s ease 0.12s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, visibility 0s !important; }

/* ---------- brand pages ---------- */
.brand-logo-card { display: grid; place-items: center; min-height: 320px; border-radius: 28px; background: radial-gradient(120% 90% at 30% 20%, #ffffff 0%, #f1f4f9 60%, #e7ecf4 100%); border: 1px solid #e3e9f1; box-shadow: 0 30px 60px -40px rgba(19, 35, 57, .35); }
.brand-logo-card img { width: min(60%, 320px); height: auto; max-height: 110px; object-fit: contain; }
.brand-cats { margin: 80px 0 0; }
.brand-cats-title { margin: 0 0 28px; font-size: 30px; font-weight: 500; }
.brand-cat { scroll-margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 36px 0; border-top: 1px solid #e6eaf1; }
.brand-cat-img { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: #e9eef5; }
.brand-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-cat-copy .eyebrow { margin: 0 0 14px; color: #2b5fe3; }
.brand-cat-copy h2 { margin: 0 0 12px; font-size: 28px; font-weight: 500; letter-spacing: -.5px; }
.brand-cat-copy p:not(.eyebrow) { margin: 0; color: #687888; line-height: 1.9; }
.brand-cat-link { display: inline-flex; gap: 8px; margin-top: 20px; padding: 11px 18px; border: 1px solid #d7dfea; border-radius: 999px; font-size: 14px; font-weight: 500; color: #132339; text-decoration: none; transition: border-color .25s, color .25s, background-color .25s; }
.brand-cat-link:hover { border-color: #2b5fe3; color: #2b5fe3; }
.brand-cat-link:focus-visible { outline: 2px solid #2b5fe3; outline-offset: 2px; }
.brand-catalog { grid-column: 1 / -1; margin: 8px 0 0; }
.brand-more { max-width: none; margin-top: 60px; }
@media (max-width: 800px) {
  .brand-logo-card { min-height: 200px; border-radius: 22px; }
  .brand-cats { margin-top: 56px; }
  .brand-cats-title { font-size: 24px; }
  .brand-cat { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
  .brand-cat-copy h2 { font-size: 24px; }
}

/* ---------- all articles: a large lead story, then a quiet grid ---------- */
.ai { padding-top: 56px; padding-bottom: 120px; }
.ai-hero { max-width: 760px; padding-bottom: 40px; }
.ai-hero .breadcrumb { margin-bottom: 36px; }
.ai-hero h1 { margin: 0; font-size: clamp(44px, 6vw, 84px); font-weight: 400; line-height: 1.02; letter-spacing: -0.04em; color: #0a1730; }
.ai-hero p { margin: 22px 0 0; max-width: 34em; font-size: 16px; line-height: 1.85; color: #5b6678; }
.ai-filter { display: flex; flex-wrap: wrap; gap: 6px 26px; padding: 18px 0; border-top: 1px solid #e6eaf1; border-bottom: 1px solid #e6eaf1; }
.ai-filter button { padding: 6px 0; border: 0; background: none; font: inherit; font-size: 12px; letter-spacing: .14em; color: #7a8698; cursor: pointer; position: relative; transition: color .25s; }
.ai-filter button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #2b5fe3; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.ai-filter button:hover, .ai-filter button[aria-pressed="true"] { color: #0a1730; }
.ai-filter button[aria-pressed="true"]::after { transform: scaleX(1); }
.ai-filter button:focus-visible { outline: 2px solid #2b5fe3; outline-offset: 4px; }
.ai-list { margin-top: 48px; }
.ai-fallback { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 18px; }
.ai-list a { color: inherit; text-decoration: none; display: block; }
.ai-list a:focus-visible { outline: 2px solid #2b5fe3; outline-offset: 6px; border-radius: 14px; }
.ai-img { overflow: hidden; border-radius: 18px; background: #e9eef5; }
.ai-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.16, .84, .24, 1); }
.ai-list a:hover .ai-img img { transform: scale(1.04); }
.ai-meta { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-size: 11px; letter-spacing: .14em; color: #7a8698; }
.ai-meta span { color: #2b5fe3; font-weight: 600; }
.ai-meta time { letter-spacing: .04em; }
.ai-excerpt { margin: 0; color: #5b6678; line-height: 1.8; }
.ai-feature > a { display: grid !important; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ai-feature .ai-img { aspect-ratio: 3 / 2; border-radius: 22px; }
.ai-feature h2 { margin: 0 0 18px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; color: #0a1730; }
.ai-feature .ai-excerpt { font-size: 15px; max-width: 30em; }
.ai-read { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding-bottom: 6px; border-bottom: 1px solid #0a1730; font-size: 14px; font-weight: 500; color: #0a1730; }
.ai-read b { font-weight: 400; transition: transform .35s ease; }
.ai-feature a:hover .ai-read b { transform: translateX(4px); }
.ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 36px; margin-top: 72px; padding-top: 56px; border-top: 1px solid #e6eaf1; }
.ai-card .ai-img { aspect-ratio: 4 / 3; margin-bottom: 22px; }
.ai-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 500; line-height: 1.45; color: #0a1730; transition: color .25s; }
.ai-card a:hover h3 { color: #2b5fe3; }
.ai-card .ai-excerpt { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-insights .insights-more { display: flex; justify-content: center; margin-top: 44px; }
@media (max-width: 900px) {
  .ai-feature > a { grid-template-columns: 1fr; gap: 28px; }
  .ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 24px; margin-top: 56px; padding-top: 44px; }
}
@media (max-width: 560px) {
  .ai { padding-top: 36px; padding-bottom: 80px; }
  .ai-hero { padding-bottom: 28px; }
  .ai-hero .breadcrumb { margin-bottom: 24px; }
  .ai-filter { gap: 4px 20px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .ai-filter button { white-space: nowrap; }
  .ai-list { margin-top: 32px; }
  .ai-feature .ai-img { border-radius: 16px; }
  .ai-grid { grid-template-columns: 1fr; gap: 40px; }
}
.ai-page .article-header > a:not(.article-wordmark) { white-space: nowrap; }
