/* StarNet — static site styles */
:root {
  --paper: #f4f3ef;
  --sand: #eeece6;
  --line: #d9d7d0;
  --ink: #14161a;
  --ink-2: #3b4048;
  --muted: #5b6068;
  --faint: #8b919b;
  --signal: #1e5eea;
  --signal-2: #1546b8;
  --led: #3ddc84;
  --night: #0b0e14;
  --night-2: #151a23;
  --night-line: #1c2230;
  --night-card-line: #2a3140;
  --night-text: #e6eaf2;
  --night-muted: #9aa3b2;
  --font-display: "Schibsted Grotesk", "Trebuchet MS", Helvetica, Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
a { color: var(--signal); text-decoration: none; }
a:hover { color: var(--signal-2); }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); }

.wrap { width: 100%; max-width: 1328px; margin: 0 auto; padding-inline: 24px; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pn { font-family: var(--font-mono); font-weight: 500; }
.h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; }
.lead { font-size: 16px; color: var(--ink-2); }
.kicker { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.sec { padding-block: clamp(56px, 7vw, 88px); display: flex; flex-direction: column; gap: 40px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.more { font-weight: 600; font-size: 14px; white-space: nowrap; }
.dark { background: var(--night); color: var(--night-text); }
.dark .h2 { color: #fff; }
.dark .lead { color: var(--night-muted); }
.dark .mono { color: var(--faint); }
.sand { background: var(--sand); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 4px; font-weight: 600; font-size: 15px; border: 1px solid var(--ink); color: var(--ink); background: transparent; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #000; }
.btn.accent { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn.accent:hover { background: var(--signal-2); border-color: var(--signal-2); color: #fff; }
.btn.light { border-color: #3a4557; color: var(--night-text); }
.btn.light:hover { background: var(--night-text); color: var(--night); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn.ghost { border-color: var(--line); }

/* Chips */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 3px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--sand); color: var(--ink); }
.chip.ok { background: #dff3e6; color: #176b3a; }
.chip.warn { background: #fdecc8; color: #7a4a00; }
.dark .chip { background: #232a36; color: #b9c0cc; }
.dark .chip.ok { background: #143726; color: var(--led); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px var(--led); flex: none; }
.dot.blue { background: var(--signal); box-shadow: 0 0 8px var(--signal); }

/* Header */
.site-header { background: var(--night); color: var(--night-text); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--night-line); }
.site-header .bar { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand .logo { font-family: "Schibsted Grotesk", var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: #f4f3ef; }
.brand .logo .thin { font-weight: 500; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { color: var(--night-text); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a.active { color: #9dc0ff; }
.header-actions { display: flex; gap: 10px; align-items: center; }
/* Header search trigger: looks like a field on wide pages, a magnifier button on the home page and phones */
.search-trigger { display: inline-flex; align-items: center; gap: 8px; height: 40px; width: 260px; padding: 0 8px 0 12px; border: 1px solid #2a3140; border-radius: 4px; background: #fff; color: var(--faint); font-size: 14px; text-align: start; flex: none; }
.search-trigger svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.search-trigger .st-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-trigger:hover { border-color: var(--signal); }
.search-trigger:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
kbd { font-family: var(--font-mono); font-size: 11px; line-height: 1; padding: 3px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--sand); color: var(--muted); }
.page-home .search-trigger { width: 40px; padding: 0; justify-content: center; background: transparent; color: var(--night-text); }
.page-home .search-trigger:hover { border-color: #5b6470; }
.page-home .search-trigger svg { width: 18px; height: 18px; stroke-width: 2; }
.page-home .search-trigger .st-text, .page-home .search-trigger kbd { display: none; }

/* Search pop-up */
html.modal-open { overflow: hidden; }
.search-modal { width: min(720px, calc(100% - 32px)); max-width: none; max-height: min(640px, calc(100dvh - 48px)); margin: 8vh auto auto; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); overflow: visible; }
.search-modal::backdrop { background: rgba(11, 14, 20, .62); backdrop-filter: blur(3px); }
.search-modal[open] { animation: sm-in .16s ease-out; }
.search-modal[open]::backdrop { animation: sm-fade .16s ease-out; }
@keyframes sm-in { from { opacity: 0; transform: translateY(-8px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes sm-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .search-modal[open], .search-modal[open]::backdrop { animation: none; } }
.sm-panel { display: flex; flex-direction: column; max-height: inherit; background: #fff; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.sm-bar { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; height: 64px; border-bottom: 1px solid var(--line); flex: none; }
.sm-bar > svg { width: 22px; height: 22px; stroke: var(--signal); fill: none; stroke-width: 2; stroke-linecap: round; flex: none; }
.sm-bar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 19px; color: var(--ink); }
.sm-bar input::placeholder { color: var(--faint); }
.sm-close { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); flex: none; }
.sm-close:hover { background: var(--sand); color: var(--ink); }
.sm-close svg { display: none; width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sm-body { overflow: auto; padding: 8px; flex: 1; min-height: 0; }
.sm-results .sr-item { grid-template-columns: 76px minmax(0, 1fr) auto; padding: 10px; }
.sm-results .sr-img { width: 76px; }
.sm-results .sr-name { font-size: 15px; }
.sm-start { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 16px; }
.sm-start .mono { font-size: 11px; }
.sm-chips, .sm-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sm-chips a { font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; }
.sm-chips a:hover { border-color: var(--signal); color: var(--signal); }
.sm-cats a { font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 4px; background: var(--sand); color: var(--ink); }
.sm-cats a:hover { background: var(--ink); color: var(--paper); }
.sm-foot { display: flex; gap: 20px; flex-wrap: wrap; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--paper); font-size: 12px; color: var(--muted); flex: none; }
.sm-foot kbd { margin-inline-end: 3px; }

/* Live results dropdown */
.search-results { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 70; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); padding: 6px; max-height: min(70vh, 540px); overflow: auto; text-align: start; font-size: 14px; line-height: 1.4; }
.sr-item { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 4px; color: var(--ink); }
.sr-item:hover, .sr-item.on { background: var(--sand); color: var(--ink); }
.sr-img { width: 60px; aspect-ratio: 3 / 2; border-radius: 3px; overflow: hidden; background: linear-gradient(#151a23, #0b0e14); display: flex; }
.sr-img img { width: 100%; height: 100%; object-fit: contain; }
.sr-img.photo img { object-fit: cover; }
.sr-text { display: flex; flex-direction: column; min-width: 0; }
.sr-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-name mark { background: #dbe6ff; color: inherit; border-radius: 2px; }
.sr-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-pn { font-size: 12px; color: var(--faint); white-space: nowrap; }
.sr-empty { padding: 14px 12px; color: var(--muted); }
.sr-all { display: block; margin-top: 4px; padding: 10px 12px; border-top: 1px solid var(--sand); border-radius: 0 0 4px 4px; font-weight: 600; }
.sr-all:hover, .sr-all.on { background: var(--sand); }
.quick { height: 44px; display: flex; align-items: center; gap: 28px; border-top: 1px solid var(--night-line); overflow-x: auto; white-space: nowrap; }
.quick .mono { color: #5b6470; flex: none; }
.quick a { color: var(--night-muted); font-size: 14px; font-weight: 500; flex: none; }
.quick a:hover, .quick a.active { color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid #2a3140; border-radius: 4px; background: transparent; color: var(--night-text); align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.rfq-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: var(--signal); font-size: 12px; font-weight: 700; }
.rfq-count[hidden] { display: none; }

/* Hero */
.hero { position: relative; }
/* Photo covering the whole right half of the hero, fading into the dark background */
.hero { --hero-fade: to right; }
[dir="rtl"] .hero { --hero-fade: to left; }
.hero-media { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 56%; pointer-events: none; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--hero-fade), var(--night) 0%, rgba(11, 14, 20, .88) 16%, rgba(11, 14, 20, .45) 42%, rgba(11, 14, 20, .12) 72%, rgba(11, 14, 20, .3) 100%),
    linear-gradient(to top, var(--night) 0%, rgba(11, 14, 20, 0) 28%),
    linear-gradient(to bottom, rgba(11, 14, 20, .55) 0%, rgba(11, 14, 20, 0) 22%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; padding-block: 96px 104px; align-items: center; position: relative; min-height: 680px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(40px, 5vw, 72px); line-height: .98; font-weight: 800; color: #fff; }
.hero .sub { font-size: 19px; color: var(--night-muted); max-width: 560px; }
.search-big { position: relative; z-index: 20; display: flex; gap: 8px; background: #fff; border-radius: 6px; padding: 6px; align-items: center; max-width: 600px; }
.search-big svg { width: 20px; height: 20px; stroke: var(--faint); fill: none; stroke-width: 1.8; stroke-linecap: round; margin-inline-start: 10px; flex: none; }
.search-big input { flex: 1 1 0; width: 0; border: 0; outline: 0; font-size: 16px; min-width: 0; }
.search-hint { font-size: 13px; color: #5b6470; }
.search-hint .pn { font-size: 13px; color: var(--night-muted); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; align-self: end; display: flex; justify-content: flex-start; }
.float-card { position: relative; width: 300px; background: #fff; color: var(--ink); border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.float-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.float-card .foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); border-top: 1px solid var(--sand); padding-top: 8px; gap: 8px; }

/* Trust strip */
.trust { background: var(--sand); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 22px; }
.trust-grid > div { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.icon { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20, 22, 26, .08); color: var(--ink); }
.card .img { border-radius: 4px; overflow: hidden; background: linear-gradient(#151a23, #0b0e14); display: flex; aspect-ratio: 3 / 2; }
.card .img img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Image flush to the card edges: cancels the card padding (16px, compact 12px) above and on both sides */
.card > .img:first-child { margin: -16px -16px 6px; border-radius: 5px 5px 0 0; }
.card.compact > .img:first-child { margin: -12px -12px 4px; }
.card h3 { font-size: 18px; }
.card p { font-size: 14px; color: var(--muted); }
.card .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.card .spec { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--sand); padding-top: 6px; }
.dark .card { background: var(--night-2); border-color: var(--night-card-line); color: var(--night-text); }
.dark a.card:hover { color: var(--night-text); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.dark .card p { color: var(--night-muted); }
.card.row { flex-direction: row; align-items: center; gap: 16px; }
.card.row .img { width: 140px; flex: none; aspect-ratio: 3 / 2; }
.card.row > .img:first-child { margin: 0; border-radius: 4px; }
.card.compact { padding: 12px; gap: 6px; }
.card.compact .pn { font-size: 13px; }
.card.compact span { font-size: 12px; color: var(--muted); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--ink); padding-top: 16px; }
.step h3 { font-size: 20px; }
.step p { font-size: 15px; color: var(--ink-2); }

/* Bullets */
.bullets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--night-line); padding-top: 28px; }
.bullets > div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--night-muted); }
.bullets .dot { margin-top: 7px; }
.bullets strong { color: var(--night-text); }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.form { grid-template-columns: 1fr 1.2fr; align-items: start; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.input, .field input, .field select, .field textarea { height: 46px; border: 1px solid #b9b6ad; border-radius: 4px; background: #fff; padding: 0 12px; font-size: 15px; width: 100%; outline: 0; }
.field textarea { height: 96px; padding: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(30, 94, 234, .15); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { font-size: 13px; color: var(--muted); }
.contact-lines { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); }
.footer-grid { padding-block: 56px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid .col { display: flex; flex-direction: column; gap: 10px; }
.footer-grid .col strong { color: #f4f3ef; font-weight: 600; font-size: 14px; }
.footer-grid a { color: var(--night-muted); font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 14px; max-width: 320px; }
.footer-bottom { padding-block: 20px 32px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; flex-wrap: wrap; }
.footer-bottom a { color: var(--night-muted); }

/* Page head */
.page-head { padding-block: 48px 24px; display: flex; flex-direction: column; gap: 14px; }
.page-head .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(34px, 4vw, 48px); font-weight: 800; }
.page-head .lead { max-width: 620px; }

/* Catalog */
.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding-block: 24px 88px; align-items: start; }
.filters { display: flex; flex-direction: column; }
.fgroup { display: flex; flex-direction: column; gap: 10px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.fgroup:first-child { padding-top: 0; }
.fgroup .t { font-weight: 600; font-size: 14px; }
.cb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.cb input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.filters-foot { padding-top: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.toolbar .count { font-size: 14px; color: var(--muted); }
.toolbar select { height: 36px; padding: 0 12px; border: 1px solid #b9b6ad; border-radius: 4px; background: #fff; font-size: 14px; }
.results { display: flex; flex-direction: column; gap: 24px; }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; }
.cta-band { background: var(--night); color: var(--night-text); border-radius: 8px; padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: 24px; }
.cta-band span { font-size: 15px; color: var(--night-muted); }
.filters-toggle { display: none; }

/* Pager, directory, filter lists */
.pager { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pg { min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink); background: #fff; }
.pg:hover { border-color: var(--ink); }
.pg.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pg.dots { border: 0; background: transparent; color: var(--muted); }
.pg:disabled { opacity: .4; cursor: default; }
.cb em { font-style: normal; color: var(--faint); font-family: var(--font-mono); font-size: 11px; margin-inline-start: auto; }
.cb span { flex: 1; }
.fgroup .scroll { max-height: 280px; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding-inline-end: 6px; }
.dir-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 24px 88px; }
.dir-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 20px; }
.dir-card .img { border-radius: 4px; overflow: hidden; background: var(--night); display: flex; aspect-ratio: 16 / 9; align-self: start; }
.dir-card .img img { width: 100%; height: 100%; object-fit: cover; }
.dir-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dir-body h2 { font-size: 22px; color: var(--ink); }
.dir-body a:hover h2 { color: var(--signal); }
.fam-list { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.fam-list a { font-size: 13px; color: var(--ink-2); background: var(--sand); border-radius: 3px; padding: 4px 8px; }
.fam-list a:hover { background: var(--ink); color: var(--paper); }
.fam-list a em { font-style: normal; color: var(--faint); font-family: var(--font-mono); font-size: 11px; margin-inline-start: 4px; }
.page-head #crumb a { color: var(--muted); }
.page-head #crumb a:hover { color: var(--signal); }

/* Photos */
.card .img.photo { background: var(--sand); }
.card .img.photo img { object-fit: cover; }
a.card .img.photo img { transition: transform .3s ease; }
a.card:hover .img.photo img { transform: scale(1.03); }
.gallery-wrap { display: flex; flex-direction: column; gap: 12px; }
.product .gallery.photo { background: #fff; aspect-ratio: 4 / 3; align-items: center; justify-content: center; }
.product .gallery.photo img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { width: 88px; height: 66px; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 4px; display: flex; align-items: center; justify-content: center; }
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.credit { font-size: 12px; color: var(--faint); }

/* Product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding-block: 32px 88px; align-items: start; }
.product .gallery { border-radius: 8px; overflow: hidden; background: var(--night); border: 1px solid var(--line); display: flex; }
.product .gallery img { width: 100%; height: auto; display: block; }
.product .info { display: flex; flex-direction: column; gap: 20px; }
.product h1 { font-size: clamp(30px, 3.5vw, 44px); font-weight: 800; }
.specs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs > div span:first-child { color: var(--muted); }
.specs > div span:last-child { text-align: end; font-weight: 500; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty input { width: 80px; height: 50px; border: 1px solid #b9b6ad; border-radius: 4px; padding: 0 12px; font-size: 15px; text-align: center; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { background: var(--sand); border-radius: 6px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }

/* RFQ page */
.rfq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-block: 24px 88px; align-items: start; }
.rfq-main { display: flex; flex-direction: column; gap: 32px; }
.rfq-side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 140px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.panel h2 { font-size: 22px; }
.panel.dark { background: var(--night); border-color: var(--night); color: var(--night-text); }
.lines { display: grid; grid-template-columns: 1.1fr 1.6fr 0.6fr 0.9fr 44px; gap: 12px; align-items: center; }
.lines .th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.lines input, .lines select { height: 46px; border: 1px solid #b9b6ad; border-radius: 4px; padding: 0 12px; font-size: 15px; width: 100%; background: #fff; outline: 0; }
.lines input:focus, .lines select:focus { border-color: var(--signal); }
.lines input.pn { font-family: var(--font-mono); }
.lines .rm { width: 44px; height: 46px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--faint); font-size: 18px; }
.lines .rm:hover { color: #b3261e; border-color: #b3261e; }
.stepper { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--night-muted); }
.stepper .num { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--night); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; flex: none; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks > div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.checks svg { width: 18px; height: 18px; stroke: #176b3a; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-top: 3px; }
.preview { background: var(--night); color: var(--night-text); border-radius: 6px; padding: 16px; font-family: var(--font-mono); font-size: 13px; white-space: pre-wrap; line-height: 1.6; max-height: 320px; overflow: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 6px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 100; }
.toast.show { opacity: 1; }

/* Brands page */
.brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.brand-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.brand-card:hover { border-color: var(--ink); color: var(--ink); }
.brand-card h3 { font-size: 22px; }
.brand-card p { font-size: 14px; color: var(--muted); }
.brand-card .cnt { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; padding-block: 24px 88px; align-items: start; }
.contact-block { display: flex; flex-direction: column; gap: 6px; padding-block: 18px; border-top: 1px solid var(--line); }
.contact-block strong { font-size: 14px; }
.contact-block span { color: var(--ink-2); font-size: 15px; }
.map-ph { border-radius: 8px; background: var(--night); border: 1px solid var(--line); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; color: var(--faint); font-family: var(--font-mono); font-size: 13px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .search-trigger { width: 200px; }
  .grid.c4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.c7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bullets { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .header-email { display: none; }
  /* Phones: magnifier button, full-screen search */
  .search-trigger { width: 40px; padding: 0; justify-content: center; background: transparent; color: var(--night-text); }
  .search-trigger .st-text, .search-trigger kbd { display: none; }
  .search-trigger svg { width: 18px; height: 18px; stroke-width: 2; }
  .search-modal { width: 100%; max-height: none; height: 100dvh; margin: 0; border-radius: 0; }
  .sm-panel { height: 100%; border-radius: 0; }
  .sm-bar { padding-inline: 16px 8px; }
  .sm-bar input { font-size: 17px; }
  .sm-close kbd, .sm-foot { display: none; }
  .sm-close svg { display: block; }
  .burger { display: inline-flex; }
  .site-header.open .nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0 16px; border-top: 1px solid var(--night-line); }
  .site-header.open .nav a { padding: 10px 0; font-size: 17px; width: 100%; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 48px 64px; gap: 40px; }
  .hero { --hero-fade: to bottom; }
  .hero-grid { min-height: 0; padding-block: 48px 40px; }
  .hero-media { top: auto; height: 460px; width: 100%; }
  .hero-media::after { background: linear-gradient(to bottom, var(--night) 0%, rgba(11, 14, 20, .4) 45%, rgba(11, 14, 20, .75) 100%); }
  .hero-visual { padding-top: 200px; }
  .float-card { width: min(300px, 100%); }
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.form, .product, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .catalog { grid-template-columns: 1fr; gap: 24px; }
  .dir-grid { grid-template-columns: 1fr; }
  .dir-card { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.open { display: flex; }
  .filters-toggle { display: inline-flex; }
  .rfq-layout { grid-template-columns: 1fr; }
  .rfq-side { position: static; }
  .lines { grid-template-columns: 1fr 1fr; }
  .lines .th { display: none; }
  .lines .rm { width: 100%; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid.c2, .grid.c3, .grid.c4, .steps, .trust-grid, .form-grid, .footer-grid, .brand-grid { grid-template-columns: 1fr; }
  .grid.c7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.row { flex-direction: column; align-items: stretch; }
  .card.row .img { width: 100%; }
  .btn { width: 100%; }
  .hero-ctas .btn, .actions .btn { width: auto; }
  .search-big .btn { width: auto; }
  .lines { grid-template-columns: 1fr; }
}

/* ---------- Language switcher ---------- */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid #2a3140; border-radius: 4px; color: var(--night-text); cursor: pointer; font-size: 13px; font-weight: 600; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: #5b6470; }
.lang summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.lang summary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.lang-code { font-family: "IBM Plex Mono", Consolas, monospace; letter-spacing: .04em; }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); padding: 6px; display: flex; flex-direction: column; z-index: 60; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 4px; color: var(--ink); font-size: 15px; }
.lang-menu a:hover { background: var(--sand); color: var(--ink); }
.lang-menu a[aria-current="true"] { font-weight: 600; background: var(--sand); }
.lang-menu .code { font-family: "IBM Plex Mono", Consolas, monospace; font-size: 11px; color: var(--faint); text-transform: uppercase; }
.nav .nav-rfq { display: none; }

/* ---------- Scripts: fonts per language ---------- */
:root:lang(zh) {
  --font-display: "Schibsted Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans SC", "Microsoft YaHei", monospace;
}
:root:lang(ar) {
  --font-display: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-mono: "IBM Plex Mono", "IBM Plex Sans Arabic", Tahoma, monospace;
}
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) h4 { letter-spacing: 0; }
:lang(zh) .hero h1 { line-height: 1.12; }
:lang(zh) .mono { letter-spacing: .04em; }
/* Arabic letters must stay joined: no letter-spacing, taller lines */
:lang(ar) body { line-height: 1.75; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; line-height: 1.35; }
:lang(ar) .hero h1 { line-height: 1.25; }
:lang(ar) .mono { letter-spacing: 0; text-transform: none; font-family: var(--font-body); font-size: 13px; }
:lang(ar) .lang-menu .code, :lang(ar) .lang-code { font-family: "IBM Plex Mono", Consolas, monospace; }

/* ---------- Right-to-left ---------- */
[dir="rtl"] .pn, .ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .quick { direction: rtl; }
[dir="rtl"] .toolbar select, [dir="rtl"] .field select { background-position: left 12px center; }
[dir="rtl"] .card.row { text-align: start; }

@media (max-width: 1240px) {
  .search-trigger { width: 180px; }
}
@media (max-width: 900px) {
  .site-header.open .nav .nav-rfq { display: block; color: #9dc0ff; }
}
@media (max-width: 480px) {
  .header-rfq { display: none; }
  .lang summary { padding: 0 8px; }
}

/* ---------- Header fit for the "EastBridge Tech" wordmark ---------- */
.brand { flex: none; }
.brand .logo { white-space: nowrap; }
.nav a { white-space: nowrap; }
@media (max-width: 1240px) {
  .nav { gap: 22px; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; background: transparent; color: var(--night-text); }
  .search-trigger:hover { border-color: #5b6470; }
  .search-trigger .st-text, .search-trigger kbd { display: none; }
  .search-trigger svg { width: 18px; height: 18px; stroke-width: 2; }
}
@media (max-width: 1060px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .site-header.open .bar { flex-wrap: wrap; height: auto; min-height: 68px; row-gap: 0; }
  .site-header.open .brand, .site-header.open .header-actions { height: 68px; }
  .site-header.open .nav { display: flex; order: 3; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0 16px; border-top: 1px solid var(--night-line); }
  .site-header.open .nav a { padding: 10px 0; font-size: 17px; width: 100%; }
  .site-header.open .nav .nav-rfq { display: block; color: #9dc0ff; }
}
@media (max-width: 480px) {
  .site-header .bar { gap: 12px; }
  .header-actions { gap: 8px; }
  .brand { gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .brand .logo { font-size: 18px; }
  .site-footer .brand .logo { font-size: 18px !important; }
}
@media (max-width: 360px) {
  .brand .logo .thin { display: none; }
}
