/* =====================================================================
   www-discover.css — home (/), directory (/companies), company profile
   (/companies/{slug}). Owned by the www-discover builder.
   Colours come ONLY from pexth-ui.css tokens (dark mode for free; status text
   uses the per-theme --badge-*-ink and text on a solid --primary fill uses
   --on-primary, both from pexth-brand.css); literal
   white/black appear only on top of photos/video or brand-gradient surfaces,
   exactly like www.css does.
   ===================================================================== */

/* ---------- shared primitives ---------- */
.plain-list { list-style: none; margin: 0; padding: 0; }
.i { width: 20px; height: 20px; flex: none; }
.i-sm { width: 16px; height: 16px; }
.i-xs { width: 14px; height: 14px; }
.btn-ico { display: inline-flex; }
.btn-light { background: #fff; color: var(--brand-800); }
.btn-light:hover { background: var(--brand-50); }
.hint-warn { color: var(--badge-warning-ink); }
.counter { font-variant-numeric: tabular-nums; }
.counter-warn { color: var(--badge-warning-ink); }
@media (max-width: 520px) { .hide-sm { display: none; } }

/* honeypot: present for bots, invisible and unreachable for people */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* skeleton shimmer on elements whose own background would otherwise win */
.skel-card .skeleton, .cat-tile.cat-skel, .gold-banner.gold-skel, .co-skel .skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
}
.sk-line { display: block; height: 12px; width: 100%; border-radius: var(--r-pill); }
.sk-title { height: 18px; width: 70%; }
.sk-short { width: 45%; }

/* ---------- star meter ---------- */
.stars { position: relative; display: inline-block; line-height: 1; letter-spacing: 1px; white-space: nowrap; font-size: .95rem; vertical-align: middle; }
.stars-md { font-size: 1.15rem; }
.stars-lg { font-size: 1.5rem; }
.stars-base { color: var(--border-strong); }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--solar-500); }

/* ---------- company card additions (base in www.css) ---------- */
.co-card { position: relative; }
.co-card .co-name { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.co-card .co-link { color: var(--text); }
.co-card .co-link:hover { text-decoration: none; }
.co-card .co-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }    /* whole card clickable */
.co-card .co-link:focus-visible { box-shadow: none; }
.co-card:focus-within { box-shadow: var(--focus), var(--shadow-2); }
.co-card:hover .co-link { color: var(--primary); }
.co-card .co-loc, .co-card .co-cap { display: flex; align-items: center; gap: 6px; font-size: .84rem; min-width: 0; }
.co-card .co-loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-card .co-rating { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.co-card .logo-fallback { display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: var(--primary); background: var(--primary-soft); }
.co-card .cover { overflow: hidden; }
.co-card .cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }   /* never let a tall image stretch the 16:7 box */
.co-card .cover-fallback { display: grid; place-items: center; color: rgba(255, 255, 255, .4); background: linear-gradient(135deg, var(--brand-800), var(--brand-500)); }
.co-card.tier-gold-card .cover-fallback { background: linear-gradient(135deg, var(--brand-900), var(--tier-gold)); }
.co-card.tier-silver-card .cover-fallback { background: linear-gradient(135deg, var(--brand-900), var(--tier-silver)); }
.co-card.tier-bronze-card .cover-fallback { background: linear-gradient(135deg, var(--brand-900), var(--tier-bronze)); }
.co-card .cover-ico { width: 44px; height: 44px; }
.skel-card .cover { aspect-ratio: 16 / 7; border-radius: 0; }
.skel-card .logo { display: block; width: 52px; height: 52px; border-radius: var(--r); border: 0; }
.skel-card .body { gap: var(--s-2); }

/* ---------- empty / error state ---------- */
.state-box { text-align: center; padding: var(--s-10) var(--s-6); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface); }
.state-ico { width: 56px; height: 56px; margin: 0 auto var(--s-3); border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.state-ico .i { width: 28px; height: 28px; }
.state-error .state-ico { background: var(--danger-soft); color: var(--badge-danger-ink); }
.state-title { font-size: 1.1rem; margin-bottom: var(--s-2); }
.state-box p { max-width: 540px; margin: 0 auto var(--s-4); }
.state-actions { justify-content: center; gap: var(--s-2); }
.pager-gap { padding: 0 4px; color: var(--text-3); }

/* ---------- typeahead ---------- */
.suggest-wrap { position: relative; }
.suggest-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; margin: 0; padding: var(--s-1); list-style: none; max-height: 340px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-3); color: var(--text); text-align: left; }
.suggest-item { display: flex; align-items: center; gap: var(--s-2); padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: .92rem; }
.suggest-item .i { color: var(--text-3); }
.suggest-item[aria-selected="true"], .suggest-item:hover { background: var(--primary-soft); }
.suggest-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-type { font-size: .72rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- tooltip ---------- */
.tip-host { position: relative; display: inline-flex; }
.tooltip { position: absolute; z-index: 80; left: 0; top: calc(100% + 8px); width: max-content; max-width: min(320px, calc(100vw - 32px));
  padding: var(--s-3); border-radius: var(--r); background: var(--text); color: var(--bg); font-size: .82rem; font-weight: 400; line-height: 1.55;
  letter-spacing: 0; text-transform: none; white-space: normal; box-shadow: var(--shadow-3); }
.tooltip::before { content: ""; position: absolute; top: -5px; left: 16px; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); }
.badge-btn { border: 0; font-family: inherit; cursor: help; }

/* ---------- media play/pause ---------- */
.media-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 2;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(6, 15, 30, .55); color: #fff; }
.media-toggle:hover { background: rgba(6, 15, 30, .8); }
.media-toggle:focus-visible { box-shadow: 0 0 0 3px var(--solar-400); }

/* ---------- dialog (RFQ modal) ---------- */
html.dlg-lock { overflow: hidden; }
.dlg-backdrop { position: fixed; inset: 0; z-index: 960; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto;
  padding: var(--s-6) var(--s-4); background: rgba(6, 15, 30, .55); animation: pexth-fade .15s var(--ease); }
.dlg { width: 100%; max-width: 560px; margin: auto; display: flex; flex-direction: column; max-height: calc(100vh - 48px);
  background: var(--surface); color: var(--text); border-radius: var(--r-xl); box-shadow: var(--shadow-3); }
.dlg:focus { outline: none; }
.dlg-wide { max-width: 660px; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--border); }
.dlg-title { font-size: 1.3rem; margin: 0 0 2px; }
.dlg-body { flex: 1; overflow-y: auto; padding: var(--s-5) var(--s-6); }
.dlg-foot { display: flex; justify-content: flex-end; gap: var(--s-2); flex-wrap: wrap; padding: var(--s-4) var(--s-6); border-top: 1px solid var(--border);
  background: var(--surface-2); border-radius: 0 0 var(--r-xl) var(--r-xl); }
@media (max-width: 620px) {
  .dlg-backdrop { padding: 0; align-items: stretch; }
  .dlg { max-width: none; max-height: none; min-height: 100%; border-radius: 0; }
  .dlg-head, .dlg-body, .dlg-foot { padding-left: var(--gutter); padding-right: var(--gutter); }
  .dlg-foot { border-radius: 0; position: sticky; bottom: 0; }
  .dlg-foot .btn { flex: 1; }
}

.rfq-to { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); margin: 0 0 var(--s-4); border-radius: var(--r); background: var(--primary-soft); font-size: .92rem; }
.rfq-to .i { color: var(--primary); }
.rfq-to strong { overflow-wrap: anywhere; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-4); }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.seg-field, .star-field, .tier-field { border: 0; padding: 0; margin: 0 0 var(--s-4); min-width: 0; }
.seg-field legend, .star-field legend, .tier-field legend { padding: 0; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.seg-opt { position: relative; display: flex; }
.seg-opt input, .tier-opt input, .switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg-opt span { flex: 1; text-align: center; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface);
  color: var(--text-2); font-weight: 600; font-size: .92rem; cursor: pointer; }
.seg-opt input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.seg-opt input:focus-visible + span { box-shadow: var(--focus); }
.field.has-error .seg-opt span { border-color: var(--danger); }
.rfq-success { text-align: center; padding: var(--s-6) var(--s-2); }
.rfq-success:focus { outline: none; box-shadow: none; }
.rfq-success-ico { width: 64px; height: 64px; margin: 0 auto var(--s-4); border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--badge-success-ink); }
.rfq-success-ico .i { width: 32px; height: 32px; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 980; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px var(--s-4) var(--s-6);
  background: rgba(4, 10, 20, .94); color: #fff; animation: pexth-fade .15s var(--ease); }
.lb:focus { outline: none; }
.lb-top { position: absolute; top: var(--s-3); left: var(--s-4); right: var(--s-3); display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.lb-counter { font-size: .9rem; color: #c9d6ee; font-variant-numeric: tabular-nums; }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-btn:focus-visible { box-shadow: 0 0 0 3px var(--solar-400); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: var(--s-3); }
.lb-next { right: var(--s-3); }
.lb-figure { margin: 0; width: 100%; max-width: min(1200px, 100%); display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.lb-stage { width: 100%; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb-media { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; border-radius: var(--r); }
video.lb-media { width: min(100%, 1100px); background: #000; }
.lb-caption { max-width: 720px; text-align: center; font-size: .92rem; color: #e7eefb; }
@media (max-width: 620px) {
  .lb-prev, .lb-next { top: auto; bottom: var(--s-4); transform: none; }
  .lb { padding-bottom: 80px; }
}

/* =====================================================================
   HOME
   ===================================================================== */
.home-hero { overflow: visible; }                  /* let the typeahead drop below the hero */
.home-hero .hero-tagline { margin-bottom: var(--s-4); }
.sp-field { position: relative; min-width: 0; }
.sp-submit { min-height: 44px; }
.journey { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); margin: var(--s-8) 0 0; padding: 0; list-style: none; }
.journey li { display: inline-flex; align-items: center; gap: 8px; color: #d6e2f7; font-size: .88rem; }
.journey li + li::before { content: ""; width: 7px; height: 7px; margin-right: 6px; border-top: 2px solid var(--solar-400); border-right: 2px solid var(--solar-400); transform: rotate(45deg); }
.journey strong { padding: 3px 10px; border-radius: var(--r-pill); font-size: .74rem; letter-spacing: .12em; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }

.promo-section { padding-bottom: 0; }
.promo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-4); }
.promo-card { display: block; height: 100%; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text); }
a.promo-card:hover { text-decoration: none; border-color: var(--primary); box-shadow: var(--shadow-2); }
.promo-img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.promo-title { display: block; padding: var(--s-3) var(--s-4); font-weight: 600; }

/* Gold showcase */
.gold-grid { display: grid; gap: var(--s-6); }
/* The old two-column layout (first banner full width, the rest in pairs, @media min-width 900px) was removed in
   round 24: the home page now renders #gold-grid as a one-per-view carousel (www-cinematic.css). Its
   `.gold-grid-multi > .gold-banner:last-child:nth-child(even) { grid-column: 1 / -1 }` outranked the carousel's
   `grid-column: auto` reset and, with no explicit columns, pinned the last banner to column 1, so an even count
   showed the last banner first. Do not reintroduce explicit grid-column placement on gold banners: the slides must
   keep the API order (sort, id) for any count. */
.gold-banner { box-shadow: 0 0 0 2px var(--tier-gold), var(--shadow-3); }
/* stronger scrim than the base style: partner photos/videos can be bright behind the text */
.gold-banner .overlay { background: linear-gradient(0deg, rgba(6, 15, 30, .92) 0%, rgba(6, 15, 30, .7) 55%, rgba(6, 15, 30, 0) 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.gold-banner .overlay .btn, .gold-banner .overlay .badge, .gold-banner .overlay .tier { text-shadow: none; }
.gold-banner.gold-skel { min-height: 320px; box-shadow: none; }
.gold-banner-plain { background: radial-gradient(900px 400px at 90% 120%, rgba(201, 162, 39, .45), transparent 60%),
  linear-gradient(150deg, var(--brand-900), var(--brand-700) 60%, var(--brand-600)); }
.gold-banner .overlay { z-index: 1; }
.gold-banner .media-toggle { position: absolute; top: var(--s-4); right: var(--s-4); }
.gb-row { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.gb-logo { width: 64px; height: 64px; flex: none; padding: 4px; border-radius: var(--r); background: #fff; object-fit: contain; }
.gb-text { min-width: 0; }
.gb-text h3 { margin: 0 0 4px; overflow-wrap: anywhere; }
.gb-badges { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-2); }
.gb-meta { display: flex; align-items: center; gap: 6px; margin: 0; color: #d6e2f7; font-size: .92rem; }
.gb-about { max-width: 640px; margin: var(--s-3) 0 0; color: #e7eefb; }
.gb-cta { margin-top: var(--s-4); }
@media (max-width: 620px) {
  .gold-banner { min-height: 300px; }
  .gold-banner .overlay { padding: var(--s-5); }
  .gold-banner h3 { font-size: 1.3rem; }
  .gb-logo { width: 52px; height: 52px; }
}
.gold-empty { text-align: center; padding: var(--s-10) var(--s-6); border: 2px dashed var(--tier-gold); border-radius: var(--r-xl); background: var(--tier-gold-bg); }
.gold-empty-ico { width: 56px; height: 56px; margin: 0 auto var(--s-3); border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--tier-gold); }
.gold-empty p { max-width: 560px; margin: 0 auto var(--s-4); }

/* Silver carousel */
.carousel-head { margin-bottom: var(--s-6); align-items: flex-end; }
.carousel-nav { display: flex; gap: var(--s-2); align-items: center; }
.carousel-btn { width: 38px; padding: 0; }
.carousel { padding: 4px 4px var(--s-3); margin: -4px; }
.carousel:focus-visible { box-shadow: var(--focus); border-radius: var(--r-lg); }
@media (min-width: 621px) { #silver-track { grid-auto-columns: calc((100% - 2 * var(--s-4)) / 3); } }
@media (min-width: 1000px) { #silver-track { grid-auto-columns: calc((100% - 3 * var(--s-4)) / 4); } }

/* categories */
.cat-grid > li { display: flex; min-width: 0; }
.cat-grid > li > .cat-tile { flex: 1; min-width: 0; }
.cat-tile .ico .i { width: 22px; height: 22px; }
.cat-en { font-size: .78rem; }
.cat-count { margin-top: auto; padding-top: 4px; font-size: .8rem; font-weight: 600; color: var(--primary); }
.cat-tile.cat-skel { min-height: 148px; border-color: transparent; }
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
  .cat-tile { padding: var(--s-3); }
  .cat-tile strong { font-size: .88rem; overflow-wrap: anywhere; }
}

/* how / why / segments */
.how-steps { list-style: none; margin: 0; padding: 0; }
.how-steps h3 { font-size: 1.05rem; padding-top: 8px; }
.how-steps p { margin: 0; }
.feature .ico .i { width: 24px; height: 24px; }
.stats-section .stat-value { color: var(--primary); }
.seg-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 1100px) { .seg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .seg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .seg-grid { grid-template-columns: minmax(0, 1fr); } }
.seg-grid > li { display: flex; min-width: 0; }
.seg-card { flex: 1; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease); }
.seg-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-2); }
.seg-card .ico { width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.seg-card strong { font-size: 1.02rem; }
.seg-card .muted { font-size: .88rem; }
.seg-more { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--primary); }

/* calculator teaser + CTA bands */
.calc-teaser { background: linear-gradient(135deg, var(--surface), var(--primary-soft)); }
.calc-teaser-body { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-6); padding: var(--s-8); }
.calc-teaser-ico { width: 72px; height: 72px; flex: none; display: grid; place-items: center; border-radius: var(--r-lg); background: var(--warning-soft); color: var(--solar-500); }
.calc-teaser-ico .i { width: 36px; height: 36px; }
.calc-teaser-text { flex: 1 1 320px; min-width: 0; }
.calc-teaser-text h2 { margin: 4px 0 var(--s-2); }
@media (max-width: 620px) { .calc-teaser-body { padding: var(--s-6) var(--s-5); } .calc-teaser-body .btn { width: 100%; } }
.cta-stack { display: grid; gap: var(--s-4); }
.cta-band-grow { background: linear-gradient(135deg, var(--grow-600), var(--brand-700)); }
@media (max-width: 620px) { .cta-band { padding: var(--s-8) var(--s-5); } .cta-band .btn { width: 100%; white-space: normal; } }

/* =====================================================================
   DIRECTORY
   ===================================================================== */
.dir-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.dir-filters { position: sticky; top: calc(var(--nav-h) + var(--s-4)); max-height: calc(100vh - var(--nav-h) - var(--s-8)); overflow-y: auto;
  padding: var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.dir-filters-title { font-size: 1.05rem; margin: 0; }
.drawer-close, .filter-apply, .filter-btn { display: none; }
.filter-actions { display: flex; gap: var(--s-2); justify-content: space-between; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 940; background: rgba(6, 15, 30, .55); }

.tier-options { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tier-opt { position: relative; }
.tier-opt span { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); font-size: .85rem; font-weight: 600; cursor: pointer; }
.tier-opt input:checked + span { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.tier-opt-gold input:checked + span { background: var(--tier-gold-bg); color: var(--tier-gold); border-color: var(--tier-gold); }
.tier-opt-silver input:checked + span { background: var(--tier-silver-bg); color: var(--tier-silver); border-color: var(--tier-silver); }
.tier-opt-bronze input:checked + span { background: var(--tier-bronze-bg); color: var(--tier-bronze); border-color: var(--tier-bronze); }
.tier-opt input:focus-visible + span { box-shadow: var(--focus); }

.switch { position: relative; display: flex; align-items: center; gap: var(--s-3); cursor: pointer; font-size: .92rem; font-weight: 600; }
.switch-track { position: relative; flex: none; width: 42px; height: 24px; border-radius: var(--r-pill); background: var(--border-strong); transition: background .15s var(--ease); }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .15s var(--ease); }
.switch input:checked + .switch-track { background: var(--success); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { box-shadow: var(--focus); }

.dir-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-2); }
.dir-count { flex: 1 1 200px; margin: 0; font-size: 1.15rem; scroll-margin-top: calc(var(--nav-h) + var(--s-4)); }
.dir-count:focus { outline: none; box-shadow: none; }
.dir-page { font-weight: 400; font-size: .9rem; }
.dir-sort { display: flex; align-items: center; gap: var(--s-2); }
.dir-sort .label { margin: 0; white-space: nowrap; }
.dir-sort .select { width: auto; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.dir-note { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--s-4); font-size: .82rem; }
.dir-note .i { width: 16px; height: 16px; color: var(--tier-gold); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px 5px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; }
.chip span { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { border-color: var(--danger); color: var(--badge-danger-ink); }
.chip-clear { min-height: 30px; }
.co-grid { gap: var(--s-5); }
.co-grid > li { display: flex; min-width: 0; }
.co-grid > li > .co-card { flex: 1; min-width: 0; }

@media (max-width: 900px) {
  .dir-layout { grid-template-columns: minmax(0, 1fr); }
  .dir-filters { position: fixed; z-index: 950; top: 0; right: 0; bottom: 0; width: min(380px, 90vw); max-height: none;
    display: flex; flex-direction: column; padding-bottom: 0; border-width: 0 0 0 1px; border-radius: var(--r-xl) 0 0 var(--r-xl); box-shadow: var(--shadow-3);
    transform: translateX(100%); visibility: hidden; transition: transform .25s var(--ease), visibility 0s linear .25s; }
  .dir-filters.open { transform: none; visibility: visible; transition: transform .25s var(--ease), visibility 0s; }
  .drawer-close, .filter-btn, .filter-apply { display: inline-flex; }
  .filter-actions { position: sticky; bottom: 0; margin-top: var(--s-2); padding: var(--s-3) 0 var(--s-4); background: var(--surface); border-top: 1px solid var(--border); }
  .filter-actions .btn { flex: 1; }
  .dir-count { order: 3; flex-basis: 100%; }
}

/* =====================================================================
   COMPANY PROFILE
   ===================================================================== */
.co-banner { position: relative; overflow: hidden; height: clamp(180px, 28vw, 380px); background: var(--brand-900); }
.co-banner-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.co-banner-plain { background: radial-gradient(900px 300px at 85% 120%, rgba(245, 166, 35, .35), transparent 60%),
  linear-gradient(150deg, var(--brand-900), var(--brand-700) 55%, var(--brand-600)); }
.co-banner .media-toggle { position: absolute; right: var(--s-4); bottom: var(--s-4); }

.preview-bar { padding: var(--s-3) 0; background: var(--warning-soft); color: var(--badge-warning-ink); border-bottom: 1px solid var(--border); font-size: .92rem; }
.preview-bar .container { display: flex; align-items: center; gap: var(--s-2); }

.co-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-2) var(--s-5); align-items: start; padding-top: var(--s-4); padding-bottom: var(--s-6); }
.co-logo { position: relative; z-index: 1; width: 112px; height: 112px; margin-top: -56px; border-radius: var(--r-lg); border: 4px solid var(--surface);
  background: #fff; box-shadow: var(--shadow-2); object-fit: contain; }
.co-logo.logo-fallback { display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: var(--primary); background: var(--primary-soft); }
.co-head-main { min-width: 0; }
.co-badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); }
.co-title { margin-bottom: var(--s-2); font-size: clamp(1.6rem, 3.2vw, 2.3rem); overflow-wrap: anywhere; }
.co-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--text-2); font-size: .92rem; }
.co-meta > li { display: inline-flex; align-items: center; gap: 6px; }
.co-meta .i { color: var(--text-3); }
.co-rating-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.co-rating-link:hover { text-decoration: none; }
.co-rating-link:hover .subtle { text-decoration: underline; }
.co-rating-link strong { color: var(--solar-600); }
.co-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); align-self: center; }
.save-btn.is-saved { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.save-btn.is-saved svg { fill: currentColor; }
@media (max-width: 900px) {
  .co-head { grid-template-columns: auto minmax(0, 1fr); }
  .co-head-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 620px) {
  .co-head { grid-template-columns: minmax(0, 1fr); }
  .co-logo { width: 88px; height: 88px; margin-top: -48px; }
  .co-head-actions .btn-primary { flex: 1; }
  .co-badges { position: relative; }
  .co-badges .tip-host { position: static; }
  .co-badges .tooltip { left: 0; right: 0; width: auto; max-width: none; }
  .co-badges .tooltip::before { display: none; }
}

.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-8); align-items: start; padding-bottom: var(--s-10); }
.co-main { min-width: 0; }
.co-aside { position: sticky; top: calc(var(--nav-h) + var(--s-4)); min-width: 0; }
.co-tabs-anchor { scroll-margin-top: calc(var(--nav-h) + var(--s-2)); }
.co-tabs { margin-bottom: var(--s-6); }
.tab-count { display: inline-block; min-width: 22px; margin-left: 6px; padding: 0 6px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-2);
  font-size: .75rem; line-height: 20px; text-align: center; }
.tab[aria-selected="true"] .tab-count { background: var(--primary-soft); color: var(--primary); }
.tabpanel:focus-visible { box-shadow: var(--focus); border-radius: var(--r-sm); }
@media (max-width: 900px) {
  .co-layout { grid-template-columns: minmax(0, 1fr); }
  .co-aside { position: static; }
}

/* about */
.lang-toggle { display: inline-flex; gap: 2px; margin-bottom: var(--s-4); padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--surface); }
.lang-btn { padding: 5px 14px; border: 0; border-radius: var(--r-pill); background: none; color: var(--text-2); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.about-text p { color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.co-sub { margin: var(--s-8) 0 var(--s-3); font-size: 1.05rem; }
.svc-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.svc-chips .badge { font-size: .82rem; white-space: normal; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.fact { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); min-width: 0; }
.fact:nth-child(odd) { border-right: 1px solid var(--border); }
.fact dt { font-size: .78rem; font-weight: 600; color: var(--text-3); }
.fact dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact:nth-child(odd) { border-right: 0; }
}

/* projects */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-4); }
.proj-card { display: flex; flex-direction: column; }
.proj-cover { aspect-ratio: 16 / 10; background: var(--surface-3); }
.proj-img { width: 100%; height: 100%; object-fit: cover; }
.proj-cover-fallback { display: grid; place-items: center; color: var(--text-3); }
.proj-cover-fallback .i { width: 40px; height: 40px; }
.proj-body { padding: var(--s-4); }
.proj-title { margin: 0 0 6px; font-size: 1rem; overflow-wrap: anywhere; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: var(--s-2); font-size: .82rem; color: var(--text-3); }
.proj-detail { margin: 0; font-size: .88rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* gallery */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s-3); }
.gal-item { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-3); }
.gal-item:focus-visible { box-shadow: var(--focus); }
.gal-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .2s var(--ease); }
.gal-item:hover .gal-thumb { transform: scale(1.04); }
.gal-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--text-3); }
.gal-ph .i { width: 36px; height: 36px; }
.gal-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(6, 15, 30, .6); color: #fff; }

/* reviews */
.rv-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
@media (max-width: 1100px) { .rv-layout { grid-template-columns: minmax(0, 1fr); } }
.rv-col-side { display: grid; gap: var(--s-4); min-width: 0; }
.rv-col-main { min-width: 0; }
.rv-summary .card-body, .rv-form-card .card-body, .rv-signin .card-body { padding: var(--s-5); }
.rv-avg { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-4); }
.rv-avg > div { display: flex; flex-direction: column; gap: 4px; }
.rv-avg-num { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.rv-bars { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rv-bar-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 36px; align-items: center; gap: var(--s-2); font-size: .82rem; color: var(--text-2); }
.rv-bar-label { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.rv-bar-label .i { color: var(--solar-500); fill: currentColor; }
.rv-bar { height: 8px; overflow: hidden; border-radius: var(--r-pill); background: var(--surface-3); }
.rv-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--solar-500); }
.rv-bar-count { text-align: right; font-variant-numeric: tabular-nums; }
.rv-form-title { margin-bottom: 4px; font-size: 1.05rem; }
.star-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3); }
.star-input { position: relative; display: inline-flex; gap: 2px; }
.star-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.star-opt { padding: 2px; line-height: 1; border-radius: var(--r-sm); cursor: pointer; }
.star-glyph { display: block; font-size: 1.9rem; color: var(--border-strong); transition: color .1s var(--ease), transform .1s var(--ease); }
.star-opt.on .star-glyph { color: var(--solar-500); }
.star-opt:hover .star-glyph { transform: scale(1.1); }
.star-radio:focus-visible + .star-opt { box-shadow: var(--focus); }
.star-word { min-width: 5em; font-weight: 600; color: var(--text-2); }
.field.has-error .star-input { border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--danger); }
.rv-list-title { margin-bottom: var(--s-3); font-size: 1.1rem; scroll-margin-top: calc(var(--nav-h) + var(--s-4)); }
.rv-list-title:focus { outline: none; box-shadow: none; }
.rv-list { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.rv-item { display: flex; flex-direction: column; gap: 6px; padding: var(--s-4) var(--s-5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.rv-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); }
.rv-title { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.rv-body { margin: 0; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.rv-by { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; }
.rv-note { padding: var(--s-4); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); }
.rv-status:empty { display: none; }

/* contact card */
.contact-card .card-body { padding: var(--s-5); }
.contact-title { margin-bottom: var(--s-3); font-size: 1.1rem; scroll-margin-top: calc(var(--nav-h) + var(--s-4)); }
.contact-title:focus { outline: none; box-shadow: none; }
.contact-list { display: grid; gap: var(--s-3); }
.contact-row { display: flex; align-items: flex-start; gap: var(--s-3); }
.contact-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: var(--r); background: var(--primary-soft); color: var(--primary); }
.contact-val { display: flex; flex-direction: column; min-width: 0; font-size: .92rem; }
.contact-val a { overflow-wrap: anywhere; }
.contact-label { font-size: .75rem; font-weight: 600; color: var(--text-3); }
.contact-address { font-style: normal; color: var(--text); overflow-wrap: anywhere; }
.contact-actions { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.contact-note { margin: var(--s-3) 0 0; font-size: .8rem; text-align: center; }
.contact-join { margin: var(--s-2) 0 0; text-align: center; }

/* mobile action bar */
.co-mobile-cta { display: none; }
@media (max-width: 900px) {
  .co-mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2);
    padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--border); box-shadow: var(--shadow-2); }
  body.has-mobile-cta { padding-bottom: 72px; }
}

/* skeleton */
.co-head-skel { display: flex; align-items: flex-end; gap: var(--s-5); padding-top: var(--s-4); padding-bottom: var(--s-6); }
.co-head-skel .co-logo { display: block; flex: none; border: 0; box-shadow: none; }
.co-head-skel-text { flex: 1; display: grid; gap: var(--s-2); }
.co-skel .co-main { display: grid; gap: var(--s-3); }
.co-skel-card { min-height: 280px; }
