/* =========================================================
   TERĒAN — Subpage components
   (page-specific pieces; globals live in styles.css)
   ========================================================= */

/* ---------- Shared bits ---------- */
.info-card h3 { font-size: 1.25rem; margin: 18px 0 10px; }
.info-card p { color: var(--muted); }
.info-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--paper); color: var(--accent-text);
}
.info-icon svg { width: 30px; height: 30px; }

.link-card { display: flex; flex-direction: column; gap: 10px; }
.link-card h3 { font-size: 1.25rem; }
.link-card p { color: var(--muted); flex: 1; }

.aside-block { display: grid; gap: 8px; justify-items: start; }
.aside-block + .aside-block { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.aside-dark { background: var(--brand); color: #fff; padding: 24px; border-radius: var(--radius); border-top: 0 !important; }
.aside-dark strong { color: #fff; }
.aside-phone { font-size: 1.35rem; color: var(--text); font-weight: 500; }

/* ---------- How it works: diagram ---------- */
.method-diagram { padding: 18px; }
.method-diagram:hover { transform: none; }
.method-diagram svg { width: 100%; height: auto; }
.method-diagram figcaption { font-size: .9rem; color: var(--muted); padding: 12px 6px 4px; }
.dia-label { font-family: var(--font-mono); font-size: 11px; fill: #6b6566; }
.dia-label-hot { fill: #006699; }
.dia-tag { font-family: var(--font-mono); font-size: 11px; fill: #231f20; letter-spacing: .04em; }
.dia-waves circle { stroke-dasharray: 6 5; animation: diaPulse 3.2s ease-out infinite; transform-origin: 120px 140px; opacity: .85; }
.dia-waves circle:nth-child(2) { animation-delay: .5s; }
.dia-waves circle:nth-child(3) { animation-delay: 1s; }
.dia-waves circle:nth-child(4) { animation-delay: 1.5s; }
.dia-waves .w2 { transform-origin: 560px 140px; animation-duration: 2.6s; opacity: .5; }
@keyframes diaPulse { 0% { transform: scale(.4); opacity: 0; } 25% { opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
.dia-hammer { transform-origin: 118px 130px; animation: hammer 3.2s infinite; }
@keyframes hammer { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-28deg); } 78% { transform: rotate(0); } }
.method-diagram .geo { animation: geoBlink 3.2s infinite; }
@keyframes geoBlink { 0%, 100% { fill: #006699; } 30% { fill: #4da3d1; } 40% { fill: #006699; } }
.dia-car { animation: car 6s linear infinite; }
@keyframes car { from { transform: translateX(80px); } to { transform: translateX(-120px); } }

/* ---------- Timeline (dark) ---------- */
.timeline { display: grid; gap: 16px; counter-reset: t; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
.timeline-item {
  position: relative; padding: 26px 22px 28px;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  transition: border-color .3s, transform .4s var(--ease);
}
.timeline-item:hover { border-color: rgba(77,163,209,.55); transform: translateY(-4px); }
.timeline-item::before {
  content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--velocity);
}
.timeline-num { font-size: .78rem; color: var(--brand-bright); }
.timeline-time {
  display: inline-block; margin-left: 10px; padding: 3px 8px; border-radius: 6px;
  background: rgba(0,102,153,.12); color: var(--accent-text); font-size: .72rem;
}
.timeline-item h3 { font-size: 1.2rem; margin: 18px 0 10px; }
.timeline-item p { color: var(--muted-on-dark); font-size: .95rem; }

/* ---------- Compare (ReMi vs MASW) ---------- */
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.compare-head { display: none; }
.compare-row { display: grid; gap: 0; border-top: 1px solid var(--line); }
.compare-row:first-of-type { border-top: 0; }
.compare-label { padding: 20px 22px 6px; font-size: 1.05rem; }
.compare-cell { padding: 8px 22px 16px; color: var(--muted); font-size: .96rem; }
.compare-us { background: rgba(0,102,153,.05); color: var(--text); padding-top: 16px; }
.compare-tag { display: inline-block; margin-right: 8px; padding: 2px 7px; border-radius: 5px; font-size: .66rem; letter-spacing: .08em; background: var(--paper-2); color: var(--muted); }
.compare-us .compare-tag { background: var(--brand); color: #fff; }
@media (min-width: 860px) {
  .compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; }
  .compare-head { background: var(--ink); color: #fff; }
  .compare-head > * { padding: 16px 22px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
  .compare-col-us { background: var(--brand); }
  .compare-row { border-top: 1px solid var(--line); }
  .compare-row:first-of-type { border-top: 1px solid var(--line); }
  .compare-label { padding: 22px; }
  .compare-cell { padding: 22px; }
  .compare-tag { display: none; }
}
.compare-foot { margin-top: 26px; color: var(--muted); }

/* ---------- Depth chart ---------- */
.depth-chart { display: grid; gap: 22px; padding: 30px; }
.depth-chart:hover { transform: none; }
.depth-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: .95rem; }
.depth-meta strong { font-weight: 500; color: var(--accent-text); white-space: nowrap; }
.depth-track { height: 12px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.depth-fill {
  height: 100%; width: 0; border-radius: 6px;
  background: var(--velocity); background-size: 100vw 100%;
  transition: width 1.4s var(--ease) .2s;
}
.depth-row.gsap-in .depth-fill { width: var(--w); }

/* ---------- Applications: trait mosaic ---------- */
.trait-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) {
  .trait-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: 260px 260px; }
  .trait-lg { grid-column: span 2; grid-row: span 2; }
}
.trait { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; min-height: 220px; isolation: isolate; color: #fff; }
.trait-lg { grid-column: span 2; min-height: 320px; }
.trait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.trait::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(26,23,24,.88)); }
.trait:hover img { transform: scale(1.05); }
.trait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: grid; gap: 4px; }
.trait strong { font-family: var(--font-display); font-stretch: 115%; font-size: 1.35rem; font-weight: 800; }
.trait-lg strong { font-size: 2rem; }
.trait span { font-size: .9rem; color: rgba(236,234,234,.82); }

/* ---------- Applications: offerings ---------- */
.offering-list { display: grid; gap: clamp(64px, 9vw, 110px); }
.offering { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) {
  .offering { grid-template-columns: 1.1fr 1fr; gap: 72px; }
  .offering.reverse .offering-media { order: 2; }
}
.offering-kicker { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.offering-copy h3 { margin: 10px 0 14px; }
.offering-copy > p { color: var(--muted); margin-bottom: 18px; }
.offering-copy .check-list { margin-bottom: 28px; }

/* ---------- Applications: industry list (dark) ---------- */
.industry-list { border-top: 1px solid var(--line-dark); }
.industry-row {
  display: grid; gap: 14px 28px; padding: 32px 0;
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: auto 1fr;
  align-items: start;
}
.industry-row-num { color: var(--brand-bright); font-size: .8rem; padding-top: 10px; }
.industry-row h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; font-stretch: 118%; }
.industry-row p { grid-column: 1 / -1; color: var(--muted-on-dark); max-width: 70ch; }
.industry-row-img { grid-column: 1 / -1; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; }
.industry-row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.industry-row:hover .industry-row-img img { transform: scale(1.04); }
@media (min-width: 960px) {
  .industry-row { grid-template-columns: 60px 1fr 1.4fr 300px; align-items: center; }
  .industry-row p { grid-column: auto; }
  .industry-row-img { grid-column: auto; aspect-ratio: 16 / 10; }
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud li {
  padding: 10px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: .92rem; font-weight: 500;
  transition: border-color .25s, color .25s, transform .3s var(--ease);
}
.tag-cloud li:hover { border-color: var(--accent-text); color: var(--accent-text); transform: translateY(-2px); }

/* ---------- Products ---------- */
.product-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: 1fr 1fr .8fr; } }
.product-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(26,23,24,.4); }
.product-media { height: 230px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.product-media img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.product-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-body h3 { font-size: 1.5rem; }
.product-body p { color: var(--muted); }
.product-body .btn { margin-top: auto; align-self: flex-start; }
.product-tag { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.product-card-help { background: var(--ink); color: var(--text-on-dark); border-color: var(--ink); position: relative; overflow: hidden; }
.product-card-help::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--velocity-v); }
.product-card-help h3 { color: #fff; }
.product-card-help p { color: var(--muted-on-dark); }
.product-card-help .product-tag { color: var(--brand-bright); }
.spec-list { display: grid; gap: 6px; font-family: var(--font-mono); font-size: .8rem; color: var(--text); }
.spec-list li::before { content: '› '; color: var(--accent-text); }

.bundle-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .bundle-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1150px) { .bundle-grid { grid-template-columns: 1fr 1fr .85fr; } }
.bundle {
  display: flex; flex-direction: column; gap: 18px;
  padding: 30px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
.bundle-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.bundle h3 { font-size: 1.45rem; margin-top: 6px; }
.bundle > p { color: var(--muted); }
.bundle-ch {
  flex-shrink: 0; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; align-content: center;
  background: var(--ink); color: #fff; position: relative;
}
.bundle-ch::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; padding: 3px; background: var(--velocity); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.bundle-ch span { font-size: .6rem; color: var(--muted-on-dark); letter-spacing: .14em; }
.bundle-ch strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.bundle-includes { background: var(--white); border-radius: 10px; padding: 18px 20px; }
.bundle-includes > span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bundle-includes ul { display: grid; gap: 6px; margin-top: 10px; font-size: .95rem; }
.bundle-includes li { padding-left: 18px; position: relative; }
.bundle-includes li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--brand); }
.bundle-includes .bundle-sw { font-weight: 600; color: var(--accent-text); }
.bundle .btn { align-self: flex-start; margin-top: auto; }
.bundle-photo { position: relative; padding: 0; overflow: hidden; min-height: 360px; border: 0; justify-content: flex-end; isolation: isolate; color: #fff; }
.bundle-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bundle-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,23,24,.1), rgba(26,23,24,.92) 70%); }
.bundle-photo-body { padding: 28px; display: grid; gap: 10px; justify-items: start; }
.bundle-photo-body h3 { color: #fff; }
.bundle-photo-body p { color: rgba(236,234,234,.82); }

.support-banner {
  display: flex; gap: 20px; align-items: center;
  margin-top: 34px; padding: 24px 28px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(0,102,153,.12), rgba(0,102,153,.1));
  border: 1px solid rgba(0,102,153,.35);
}
.support-banner-icon { flex-shrink: 0; width: 44px; height: 44px; color: var(--accent-text); }
.support-banner p { font-size: 1.02rem; }

/* ---------- Publications ---------- */
.masonry { columns: 1; column-gap: 22px; }
@media (min-width: 760px) { .masonry { columns: 2; } }
@media (min-width: 1100px) { .masonry { columns: 3; } }
.masonry .quote-card { break-inside: avoid; margin-bottom: 22px; display: block; }

.paper-list { position: relative; display: grid; gap: 0; }
.paper-list::before { content: ''; position: absolute; left: 44px; top: 8px; bottom: 8px; width: 2px; background: var(--velocity-v); opacity: .5; display: none; }
@media (min-width: 760px) { .paper-list::before { display: block; } }
.paper { display: grid; gap: 12px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.paper:last-child { border-bottom: 0; }
@media (min-width: 760px) { .paper { grid-template-columns: 90px 1fr; gap: 40px; } }
.paper-year {
  position: relative; z-index: 1;
  justify-self: start;
  font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: 1.1rem;
  background: var(--white); padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--brand); color: var(--accent-text);
  height: fit-content;
}
.paper-body blockquote { font-size: 1.08rem; line-height: 1.65; }
.paper-cite { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.paper-cite span { font-weight: 600; color: var(--text); }
.paper-cite a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0,102,153,.3); text-underline-offset: 3px; }
.paper-cite a:hover { text-decoration-color: currentColor; }

.resource-card {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  margin-top: 44px; padding: 30px 32px;
  border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark);
}
.resource-card h3 { font-size: 1.5rem; margin: 10px 0 6px; }
.resource-card p { color: var(--muted-on-dark); }

/* ---------- FAQ page ---------- */
.faq-layout { display: grid; gap: 40px; }
@media (min-width: 980px) { .faq-layout { grid-template-columns: 300px 1fr; gap: 60px; align-items: start; } .faq-aside { position: sticky; top: calc(var(--header-height) + 24px); } }
.faq-search {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; border-radius: 12px; background: var(--white); border: 1.5px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.faq-search:focus-within { border-color: var(--accent-text); box-shadow: 0 0 0 4px rgba(0,102,153,.12); }
.faq-search svg { width: 18px; color: var(--muted); flex-shrink: 0; }
.faq-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; padding: 14px 0; }
.faq-toc { display: grid; gap: 4px; margin: 24px 0; }
.faq-toc a { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; font-weight: 500; transition: background .2s, color .2s; }
.faq-toc a:hover { background: var(--white); color: var(--accent-text); }
.faq-toc .mono { font-size: .76rem; color: var(--muted); }
.faq-help { display: grid; gap: 6px; padding: 24px; }
.faq-help:hover { transform: none; }
.faq-help p { color: var(--muted); font-size: .95rem; }
.faq-groups { display: grid; gap: 52px; }
.faq-group-title { font-size: 1.5rem; margin-bottom: 18px; }
.faq-empty { color: var(--muted); }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (min-width: 1000px) {
  .team-grid { grid-template-columns: repeat(12, 1fr); }
  .team-card { grid-column: span 3; }
  .team-card.team-lead { grid-column: span 4; }
}
.team-open { display: block; width: 100%; text-align: left; }
.team-photo { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); position: relative; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: transform .9s var(--ease), filter .5s; }
.team-photo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--velocity); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.team-open:hover .team-photo img, .team-open:focus-visible .team-photo img { transform: scale(1.04); filter: none; }
.team-open:hover .team-photo::after, .team-open:focus-visible .team-photo::after { transform: scaleX(1); }
.team-info { display: grid; gap: 2px; padding: 16px 4px 0; }
.team-name { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.3rem; }
.team-role { color: var(--text); font-weight: 500; }
.team-role-2 { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.team-more { margin-top: 10px; font-weight: 600; color: var(--accent-text); font-size: .92rem; }
.team-more span { display: inline-block; transition: transform .3s var(--ease); }
.team-open:hover .team-more span { transform: rotate(90deg); }

.bio-dialog {
  width: min(980px, calc(100% - 32px)); max-height: calc(100vh - 48px);
  margin: auto; padding: 0; border: 0; border-radius: 18px;
  background: var(--paper); color: var(--text);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.7);
}
.bio-dialog::backdrop { background: rgba(12,10,11,.7); backdrop-filter: blur(4px); }
.bio-dialog[open] { animation: bioIn .45s var(--ease); }
@keyframes bioIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.bio-inner { display: grid; position: relative; }
@media (min-width: 820px) { .bio-inner { grid-template-columns: 340px 1fr; } }
.bio-photo { position: relative; height: 300px; overflow: hidden; }
@media (min-width: 820px) { .bio-photo { height: auto; min-height: 100%; } }
.bio-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.bio-text { padding: 36px clamp(24px, 4vw, 48px) 40px; }
.bio-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 14px 0 18px; }
.bio-text p { color: var(--muted); }
.bio-text p + p { margin-top: 14px; }
.bio-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 1.5rem; line-height: 1;
  transition: transform .3s var(--ease), background .2s;
}
.bio-close:hover { transform: rotate(90deg); background: var(--signal); }

/* ---------- Forms pages ---------- */
.form-aside { display: grid; gap: 28px; }
.form-aside .aside-block + .aside-block { margin-top: 0; }
.form-layout { display: grid; gap: 36px; align-items: start; }
@media (min-width: 980px) { .form-layout { grid-template-columns: 1.5fr 1fr; gap: 56px; } }
.form-card {
  padding: clamp(26px, 4vw, 44px);
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 60px -44px rgba(26,23,24,.5);
  position: relative; overflow: hidden;
}
.form-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--velocity); }
.form-card .btn { justify-self: start; }
.next-steps { display: grid; gap: 14px; counter-reset: n; margin: 6px 0 8px; }
.next-steps li { counter-increment: n; position: relative; padding-left: 38px; color: var(--muted); font-size: .96rem; }
.next-steps li strong { color: var(--text); }
.next-steps li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .76rem; background: var(--ink); color: #fff;
}

.contact-strip { padding: 44px 0 56px; margin-top: -1px; }
.contact-cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .contact-cards { grid-template-columns: repeat(4, 1fr); } }
.contact-card {
  display: grid; gap: 6px; padding: 22px 24px;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  transition: border-color .3s, transform .4s var(--ease);
}
.contact-card:hover { border-color: rgba(77,163,209,.6); transform: translateY(-3px); }
.contact-card span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-bright); }
.contact-card strong { color: #fff; font-weight: 500; font-size: 1.05rem; word-break: break-word; }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--paper-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.quick-links { display: grid; width: 100%; }
.quick-links a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; transition: color .2s, padding-left .3s var(--ease); }
.quick-links a:hover { color: var(--accent-text); padding-left: 6px; }
.quick-links a span { color: var(--accent-text); }

/* ---------- Embeds (Calendly / JotForm) ---------- */
.demo-layout, .embed-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) {
  .demo-layout { grid-template-columns: 1fr 1.25fr; gap: 56px; }
  .embed-layout { grid-template-columns: 1fr 1.3fr; gap: 56px; }
  .demo-info, .embed-aside { position: sticky; top: calc(var(--header-height) + 24px); }
}
.demo-list { display: grid; gap: 14px; }
.demo-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.demo-list .mono { color: var(--accent-text); font-size: .8rem; padding-top: 2px; }
.demo-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.demo-meta div { padding: 16px 18px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; gap: 4px; }
.demo-meta span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-bright); }
.embed-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -44px rgba(26,23,24,.5);
}
.embed-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--ink); color: var(--muted-on-dark); font-size: .74rem; letter-spacing: .08em; }
.calendly-inline-widget { min-width: 320px; height: 760px; }
.jotform-frame { display: block; width: 100%; min-height: 900px; border: 0; }
.embed-fallback { padding: 14px 18px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }

.turnaround { display: grid; gap: 14px; }
@media (min-width: 800px) { .turnaround { grid-template-columns: repeat(3, 1fr); } }
.turn-item { padding: 26px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); display: grid; gap: 6px; }
.turn-item span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-bright); }
.turn-item strong { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: 2.2rem; color: #fff; line-height: 1.05; }
.turn-item p { color: var(--muted-on-dark); font-size: .94rem; }
.turn-rush { border-color: rgba(0,102,153,.5); }
.turn-rush span { color: var(--accent-text); }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; align-items: center; }
.notfound .page-hero-inner { max-width: 720px; }
.notfound .code { font-family: var(--font-mono); color: var(--accent-text); letter-spacing: .1em; }

/* =========================================================
   INDUSTRIES — hub + sector pages
   ========================================================= */
.sector-switch { background: var(--ink); border-bottom: 1px solid var(--line-dark); position: sticky; top: 66px; z-index: 50; }
.sector-switch-inner { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.sector-switch-inner::-webkit-scrollbar { display: none; }
.sector-switch .mono { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); margin-right: 10px; white-space: nowrap; }
.sector-switch a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted-on-dark); border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.sector-switch a:hover { color: #fff; border-color: var(--line-dark); }
.sector-switch a.active { color: #fff; background: var(--brand); }

.sector-stats { display: grid; gap: 14px; }
.sector-stat { padding: 24px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--brand); }
.sector-stat .stat-value { color: var(--text); }

.cap-card h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.cap-card p { color: var(--muted); }
.cap-num { font-size: .76rem; color: var(--accent-text); }
.band-ink .cap-card { background: var(--ink-2); border-color: var(--line-dark); }

.sector-quote { margin-top: 26px; }

.store-promo {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  margin-top: 34px; padding: 22px 26px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-dark); color: var(--text-on-dark);
  border-left: 3px solid var(--brand);
}
.store-promo strong { display: block; color: #fff; font-family: var(--font-display); font-stretch: 108%; font-size: 1.1rem; }
.store-promo span { color: var(--muted-on-dark); font-size: .95rem; }

.sector-clients-label { text-align: center; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.sector-clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.sector-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .sector-grid { grid-template-columns: 1fr 1fr; } }
.sector-card {
  position: relative; display: block; min-height: 460px; border-radius: 18px; overflow: hidden; isolation: isolate; color: #fff;
  border: 1px solid var(--line-dark);
}
.sector-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.sector-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,23,24,.2) 0%, rgba(26,23,24,.94) 62%); }
.sector-card:hover img { transform: scale(1.05); }
.sector-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px; display: grid; gap: 10px; }
.sector-card-body .mono { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-bright); }
.sector-card-body h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; font-stretch: 116%; }
.sector-card-body p { color: rgba(236,234,234,.82); font-size: .96rem; }
.sector-card-body ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sector-card-body li { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.1); }
.sector-card-go { margin-top: 8px; font-weight: 600; color: var(--brand-bright); }
.sector-card:hover .sector-card-go { color: #fff; }

/* =========================================================
   STORE
   ========================================================= */
.order-steps { display: grid; gap: 14px; }
@media (min-width: 860px) { .order-steps { grid-template-columns: repeat(3, 1fr); } }
.order-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); }
.order-steps .mono { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: .78rem; }
.order-steps strong { color: #fff; }
.order-steps p { color: var(--muted-on-dark); font-size: .93rem; }

.store-cat + .store-cat { margin-top: 56px; }
.store-cat-title { font-size: 1.5rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.store-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.product-tile {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s;
}
.product-tile:hover { transform: translateY(-3px); border-color: rgba(77,163,209,.45); }
.product-tile-media { height: 170px; display: grid; place-items: center; background: var(--ink); color: var(--brand-bright); border-bottom: 1px solid var(--line); }
.product-tile-media svg { width: 84px; height: 84px; }
.product-tile-media img { width: 100%; height: 100%; object-fit: cover; }
.product-tile-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-tile-sku { font-size: .7rem; letter-spacing: .1em; color: var(--muted); }
.product-tile h3 { font-size: 1.15rem; }
.product-tile p { color: var(--muted); font-size: .93rem; flex: 1; }
.product-tile-price { display: flex; align-items: baseline; gap: 8px; }
.product-tile-price strong { font-family: var(--font-display); font-stretch: 108%; font-size: 1.05rem; }
.product-tile-price span { font-size: .82rem; color: var(--muted); }
.product-tile-actions { display: flex; gap: 10px; align-items: center; }
.product-tile-actions .btn { flex: 1; }
.btn.is-added { --btn-bg: var(--brand-deep); }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.qty button { width: 34px; height: 38px; font-size: 1.1rem; color: var(--text); transition: background .2s; }
.qty button:hover { background: rgba(0,102,153,.2); }
.qty input { width: 40px; height: 38px; border: 0; background: transparent; color: var(--text); text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 28px; height: 32px; }
.qty-sm input { width: 34px; height: 32px; font-size: .9rem; }

.invoice-list li { padding-left: 30px; }
.invoice-list strong { color: var(--text); }

/* Checkout */
.checkout-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .checkout-layout { grid-template-columns: 1.4fr 1fr; gap: 44px; } .order-summary { position: sticky; top: calc(var(--header-height) + 24px); } }
.checkout-form fieldset { border: 0; display: grid; gap: 18px; }
.checkout-form fieldset + fieldset { padding-top: 26px; border-top: 1px solid var(--line); }
.checkout-form legend { font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; padding: 0; }
.check-row { display: flex; gap: 10px; align-items: center; font-size: .95rem; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.order-summary { padding: 26px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.order-summary-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.order-summary-head h2 { font-size: 1.3rem; }
.order-empty { color: var(--muted); padding: 14px 0; }
.order-summary .form-note { margin-top: 14px; }

.cart-line { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "icon info remove" "icon qty price"; gap: 8px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line-icon { grid-area: icon; width: 40px; height: 40px; border-radius: 8px; background: var(--ink); color: var(--brand-bright); display: grid; place-items: center; align-self: start; }
.cart-line-icon svg { width: 26px; height: 26px; }
.cart-line-info { grid-area: info; display: grid; }
.cart-line-info strong { font-size: .95rem; }
.cart-line-info span { font-size: .7rem; color: var(--muted); }
.cart-line .qty, .cart-line-qty { grid-area: qty; justify-self: start; }
.cart-line-price { grid-area: price; font-weight: 600; font-size: .9rem; text-align: right; }
.cart-line-remove { grid-area: remove; justify-self: end; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.cart-line-remove:hover { color: var(--text); background: rgba(255,255,255,.08); }
.order-total { padding-top: 14px; display: grid; gap: 4px; }
.order-total > div { display: flex; justify-content: space-between; font-size: 1.05rem; }
.order-total small { color: var(--muted); font-size: .82rem; }

/* Cart drawer (every page) */
.cart-drawer { position: fixed; inset: 0; z-index: 1100; pointer-events: none; }
.cart-drawer.open { pointer-events: auto; }
.cart-drawer-backdrop { position: absolute; inset: 0; background: rgba(12,10,11,.6); opacity: 0; transition: opacity .3s; }
.cart-drawer.open .cart-drawer-backdrop { opacity: 1; }
.cart-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--ink-2); color: var(--text-on-dark); border-left: 1px solid var(--line-dark);
  display: flex; flex-direction: column; padding: 24px;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.cart-drawer.open .cart-drawer-panel { transform: none; }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
.cart-drawer-head h2 { font-size: 1.4rem; color: #fff; }
.cart-drawer-head .bio-close { position: static; }
.cart-drawer-lines { flex: 1; overflow-y: auto; }
.cart-drawer-actions { display: grid; gap: 10px; padding-top: 18px; }
.cart-drawer .is-disabled { opacity: .45; pointer-events: none; }
.store-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.store-toolbar .store-cat-title { margin: 0; padding: 0; border: 0; }
.store-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; font-weight: 500; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--text); border-color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.product-tile[hidden] { display: none; }
.product-tile-media { position: relative; }
.product-tile-cat { position: absolute; left: 12px; top: 12px; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); }
.form input[type="checkbox"] { -webkit-appearance: auto; appearance: auto; width: 18px; height: 18px; padding: 0; border: 0; box-shadow: none; background: none; }
