/* Metache Kimya — site styles
   Layout modelled on a classic chemical-distributor site; brand red from the Metache logo (#ED1C24). */

@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --red: #ED1C24;
  --red-dark: #C4121A;
  --red-pale: #FDF2F2;
  --ink: #1E1E20;
  --text: #3C3C3F;
  --muted: #6E6E73;
  --line: #E5E5E7;
  --grey-50: #F6F6F7;
  --grey-panel: #DADADA;
  --charcoal: #3A3A3C;
  --white: #FFFFFF;
  --container: 1240px;
  --gutter: 24px;
  --header-h: 88px;
  --radius: 10px;
  --font: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--red); color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: 16px 34px; border: 0; cursor: pointer; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--grey-50); }
.btn--ghost { background: transparent; color: var(--red); border: 2px solid var(--red); padding: 14px 30px; }
.btn--ghost:hover { background: var(--red); color: #fff; }
.link-arrow { color: var(--red); font-weight: 700; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow::after { content: "›"; font-size: 1.3em; line-height: 1; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  height: var(--header-h); border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: stretch; height: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 34px; width: auto; }
.lang {
  align-self: center; display: flex; align-items: center; gap: 6px; margin-right: 18px;
  border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px; font-size: .82rem; font-weight: 600; color: var(--ink);
}
.lang a { color: var(--muted); padding: 0 2px; }
.lang a:hover { color: var(--red); }
.lang a[aria-current="true"] { color: var(--ink); }
.mobile-lang { display: none; }
.main-nav { display: flex; align-items: center; gap: 34px; margin-right: 34px; }
.main-nav a { font-weight: 600; font-size: .98rem; color: var(--ink); position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.more-btn, .search-btn { border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; font: inherit; font-weight: 600; }
.more-btn { background: var(--red); min-width: 170px; gap: 40px; padding: 0 26px; font-size: .98rem; }
.more-btn svg { transition: transform .25s; }
.more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.search-btn { background: var(--charcoal); width: 104px; }
.menu-toggle { display: none; }

.mega {
  position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(0,0,0,.25); display: none;
}
.mega.open { display: block; }
.mega .container { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-top: 40px; padding-bottom: 44px; }
.mega h4 { font-size: 1.4rem; }
.mega-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 32px; list-style: none; padding: 0; margin: 0; }
.mega-list a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.mega-list a:hover { color: var(--red); }

.search-panel { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--charcoal); display: none; padding: 26px 0; }
.search-panel.open { display: block; }
.search-panel .search-field { max-width: 720px; }

/* ---------- Search field (hero + panel) ---------- */
.search-field { position: relative; max-width: 470px; }
.search-field input {
  width: 100%; height: 64px; border-radius: 40px; border: 1.5px solid rgba(0,0,0,.18); background: #fff;
  padding: 0 64px 0 28px; font: inherit; font-size: 1rem; color: var(--ink); outline: none;
}
.search-field input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(237,28,36,.12); }
.search-field .go { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--red); cursor: pointer; padding: 6px; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 14px; list-style: none; margin: 0; padding: 8px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.25); display: none; z-index: 20;
}
.search-results.open { display: block; }
.search-results a { display: block; padding: 10px 16px; border-radius: 8px; color: var(--ink); }
.search-results a small { display: block; color: var(--muted); font-size: .82rem; }
.search-results a:hover, .search-results a.active { background: var(--red-pale); }
.search-results .empty { padding: 10px 16px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 680px; display: flex; align-items: center;
  background: linear-gradient(100deg, #FFFFFF 0%, #FFFFFF 42%, #F3F3F4 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; padding: 90px 0; }
.eyebrow { display: inline-block; color: var(--red); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.hero-copy p.lead { font-size: 1.2rem; color: var(--text); max-width: 560px; margin-bottom: 40px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: .85rem; }
.hero-chips span { color: var(--muted); margin-right: 4px; align-self: center; }
.hero-chips button { background: var(--grey-50); border: 1px solid var(--line); border-radius: 30px; padding: 6px 14px; font: inherit; color: var(--ink); cursor: pointer; }
.hero-chips button:hover { border-color: var(--red); color: var(--red); }
.hero-art { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: min(58vw, 820px); z-index: 1; pointer-events: none; }
.hero-art .bond { stroke: #D6D6D9; }
.hero-art .atom { fill: #fff; stroke: #CFCFD3; }
.hero-art .atom--red { fill: var(--red); stroke: var(--red); }
.hero-art .float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Section basics ---------- */
.section { padding: 110px 0; }
.section--pale { background: var(--red-pale); }
.section--grey { background: var(--grey-50); }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Solutions by market (tabbed) ---------- */
.markets { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: stretch; }
.markets > *, .about > *, .page-body > *, .contact-grid > *, .contact-band .container > * { min-width: 0; }
.market-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; }
.market-tab {
  display: flex; justify-content: space-between; align-items: center; text-align: left;
  background: var(--grey-50); border: 0; padding: 18px 18px; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink);
  cursor: pointer; transition: background .2s, color .2s; min-height: 64px;
}
.market-tab::after { content: "›"; color: var(--red); font-size: 1.5rem; line-height: 1; margin-left: 10px; }
.market-tab:hover { background: #EDEDEF; }
.market-tab[aria-selected="true"] { background: var(--charcoal); color: #fff; }
.markets-side { display: flex; flex-direction: column; }
.markets-side .btn { margin-top: auto; align-self: flex-start; }
.markets-side .intro { margin: 26px 0 36px; color: var(--muted); }
.market-card {
  position: relative; border-radius: 14px 0 0 14px; overflow: hidden; min-height: 520px; margin-right: calc((100vw - min(100vw, var(--container))) / -2 - var(--gutter));
  background: linear-gradient(135deg, #2B2B2E 0%, #4A4A4F 100%); color: #fff; display: flex; align-items: flex-end;
}
.market-card .art { position: absolute; inset: 0; opacity: .9; }
.market-card .art svg { width: 100%; height: 100%; }
.market-card .body { position: relative; z-index: 2; padding: 48px; max-width: 620px; }
.market-card h3 { color: #fff; font-size: 2rem; }
.market-card p { color: rgba(255,255,255,.86); }
.market-card .btn--white { margin-top: 10px; }
.market-panel[hidden] { display: none; }
.market-panel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* ---------- About (pale) ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about .lead { font-size: 1.45rem; font-weight: 600; color: #4A4A4E; line-height: 1.45; }
.why-card { background: #fff; border-radius: 16px; padding: 44px; box-shadow: 0 30px 60px -40px rgba(120,0,0,.35); }
.why-card h3 { font-size: 1.5rem; margin-bottom: 26px; }
.why-item { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.why-item:first-of-type { border-top: 0; padding-top: 0; }
.why-item .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--red-pale); color: var(--red); display: grid; place-items: center; }
.why-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.why-item p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.partner {
  border: 1px solid var(--line); border-radius: 12px; padding: 30px 20px; text-align: center; transition: border-color .2s, transform .2s;
}
.partner:hover { border-color: var(--red); transform: translateY(-3px); }
.partner .word { font-size: 1.55rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.partner .word em { font-style: normal; color: var(--red); }
.partner small { display: block; color: var(--muted); margin-top: 6px; font-size: .88rem; }

/* ---------- Network map ---------- */
.network { background: var(--grey-panel); position: relative; overflow: hidden; }
.network-grid { display: grid; grid-template-columns: 1.75fr 1fr 1fr 1fr; min-height: 560px; }
.network-text { display: flex; align-items: center; padding: 60px 40px 60px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.network-text p { font-size: 1.15rem; font-weight: 600; color: #3F3F43; margin: 0; max-width: 330px; }
.region { position: relative; border-left: 3px solid #fff; transform: skewX(-12deg); transform-origin: bottom; }
.region > .inner { transform: skewX(12deg); position: absolute; inset: 0; }
.region h4 { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; font-size: 1.45rem; font-weight: 600; color: #333; letter-spacing: .01em; margin: 0; text-transform: uppercase; }
.pin { position: absolute; display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: #333; }
.pin::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(237,28,36,.5); animation: ping 2.6s infinite; flex: none; }
.pin.hq::before { width: 28px; height: 28px; }
.pin.rev { flex-direction: row-reverse; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(237,28,36,.45); } 70%,100% { box-shadow: 0 0 0 14px rgba(237,28,36,0); } }

/* ---------- Contact band ---------- */
.contact-band { position: relative; background: var(--red); color: #fff; overflow: hidden; }
.contact-band::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: radial-gradient(circle at 18% 40%, #fff 0 2px, transparent 3px), radial-gradient(circle at 70% 70%, #fff 0 2px, transparent 3px);
  background-size: 46px 46px, 70px 70px;
}
.contact-band .container { position: relative; display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: center; padding-top: 90px; padding-bottom: 90px; }
.contact-band h2 { color: #fff; font-size: 2.2rem; }
.contact-band p { color: rgba(255,255,255,.92); margin: 0; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card {
  background: #fff; color: var(--ink); border-radius: 8px; text-align: center; padding: 40px 18px 34px; font-weight: 600; font-size: 1.15rem;
  display: flex; flex-direction: column; align-items: center; gap: 18px; transition: transform .2s, box-shadow .2s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -20px rgba(0,0,0,.45); }
.contact-card svg { width: 58px; height: 58px; }

/* ---------- Sectors grid ---------- */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #8A8A8E; }
.sector { padding: 30px 26px 34px 0; border-bottom: 1px solid var(--line); }
.sector:not(:nth-child(4n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.sector .num { color: var(--red); font-weight: 700; font-size: .85rem; letter-spacing: .1em; }
.sector h3 { margin: 10px 0 8px; font-size: 1.25rem; }
.sector p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #1E1E20; color: #BDBDC2; font-size: .95rem; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 80px 0 60px; }
.site-footer img { height: 32px; width: auto; margin-bottom: 22px; }
.site-footer h5 { color: #fff; font-size: 1rem; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid #333336; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-size: .85rem; flex-wrap: wrap; }

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(100deg, #fff 0%, #F3F3F4 100%); padding: 90px 0 70px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid var(--red-pale); }
.page-hero .container { position: relative; z-index: 1; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--red); font-weight: 600; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 900px; }
.page-hero .lead { font-size: 1.2rem; max-width: 780px; margin: 0; }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 70px; padding: 90px 0 110px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { font-size: 1.05rem; }
.prose ul { margin: 0 0 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--red); }
.checks { list-style: none; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.checks strong { color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 10px 0 30px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.card h3, .card h4 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.card .tag { color: var(--red); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.callout { background: var(--red-pale); border-left: 4px solid var(--red); padding: 26px 30px; border-radius: 0 var(--radius) var(--radius) 0; margin: 30px 0; }
.callout p:last-child { margin: 0; }
.callout strong { color: var(--ink); }
.placeholder { border: 2px dashed #D3D3D7; border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); background: var(--grey-50); font-size: .95rem; margin: 20px 0 30px; }
table.compare { width: 100%; border-collapse: collapse; margin: 16px 0 34px; font-size: .96rem; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--charcoal); color: #fff; font-weight: 600; }
table.compare thead th:first-child { border-radius: 8px 0 0 0; }
table.compare thead th:last-child { border-radius: 0 8px 0 0; }
table.compare tbody th { color: var(--ink); width: 22%; background: var(--grey-50); }
.table-wrap { overflow-x: auto; }

.aside { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; display: grid; gap: 24px; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.aside-box h4 { font-size: 1.05rem; margin-bottom: 14px; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--ink); }
.aside-box li:last-child a { border-bottom: 0; }
.aside-box li a:hover, .aside-box li a[aria-current="page"] { color: var(--red); }
.aside-cta { background: var(--red); color: #fff; border-radius: var(--radius); padding: 30px 26px; }
.aside-cta h4 { color: #fff; font-size: 1.25rem; }
.aside-cta p { color: rgba(255,255,255,.9); font-size: .95rem; }
.aside-cta .btn--white { width: 100%; justify-content: center; }

.quote { font-size: 1.35rem; line-height: 1.55; color: var(--ink); font-weight: 500; border-left: 4px solid var(--red); padding-left: 28px; margin: 0 0 20px; }
.signature { color: var(--muted); font-weight: 600; padding-left: 32px; }

/* Solutions index */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sol-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.sol-card:hover { transform: translateY(-4px); box-shadow: 0 26px 40px -28px rgba(0,0,0,.4); }
.sol-card .thumb { height: 170px; background: linear-gradient(135deg, #2B2B2E, #4A4A4F); position: relative; }
.sol-card .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sol-card .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.sol-card p { color: var(--muted); font-size: .97rem; flex: 1; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; padding: 90px 0 110px; }
.info-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 22px; }
.info-list li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.info-list .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--red-pale); color: var(--red); display: grid; place-items: center; }
.info-list strong { display: block; color: var(--ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--grey-50); padding: 40px; border-radius: 14px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; border: 1px solid #D3D3D7; background: #fff; border-radius: 6px; padding: 13px 14px; font: inherit; font-size: .98rem; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(237,28,36,.12); }
.form textarea { min-height: 140px; resize: vertical; }
.form .note { font-size: .85rem; color: var(--muted); }

/* ---------- Reveal ---------- */
/* Content is visible by default; the fade only runs once JS has marked <html class="js"> */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art .float, .pin::before { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 22px; margin-right: 22px; }
  .more-btn { min-width: 0; gap: 14px; }
  .search-btn { width: 80px; }
}
@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .main-nav, .lang, .more-btn { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; width: 72px; background: var(--red); color: #fff; border: 0; cursor: pointer; }
  .search-btn { width: 72px; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 20px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
  }
  .site-header.nav-open .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-header.nav-open .mobile-lang { display: flex; gap: 16px; padding-top: 14px; font-weight: 600; }
  .site-header.nav-open .mobile-lang a { border: 0; padding: 0; color: var(--muted); }
  .site-header.nav-open .mobile-lang a[aria-current="true"] { color: var(--red); }
  .site-header.nav-open .main-nav a::after { display: none; }
  .markets, .about, .contact-band .container, .page-body, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .market-card { margin-right: 0; border-radius: 14px; min-height: 440px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .network-grid { grid-template-columns: 1fr; }
  .network-text { padding: 60px var(--gutter) 20px; }
  .network-text p { max-width: none; }
  .region { transform: none; border-left: 0; border-top: 3px solid #fff; min-height: 220px; }
  .region > .inner { transform: none; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .sector:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .sector:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .aside { position: static; }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-art { opacity: .35; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --gutter: 16px; }
  .section { padding: 72px 0; }
  .hero { min-height: 0; }
  .hero-copy { padding: 64px 0 72px; }
  .hero-art { width: 120vw; right: -40vw; opacity: .22; }
  .market-tabs { display: flex; overflow-x: auto; gap: 8px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .market-tabs::-webkit-scrollbar { display: none; }
  .market-tab { flex: none; scroll-snap-align: start; min-height: 52px; padding: 12px 16px; font-size: .92rem; }
  .market-tab::after { display: none; }
  .markets-side .intro { margin: 18px 0 0; }
  .markets-side .btn { display: none; }
  .market-card { min-height: 380px; }
  .market-card .art { opacity: .5; }
  h1 { font-size: 2.3rem; }
  .hero-copy p.lead { font-size: 1.05rem; margin-bottom: 28px; }
  .search-field input { height: 56px; }
  .contact-band .container { padding-top: 64px; padding-bottom: 64px; }
  .page-hero { padding: 56px 0 44px; }
  .page-hero::after { display: none; }
  table.compare { font-size: .88rem; min-width: 560px; }
  .network-grid { min-height: 0; }
  .region { min-height: 180px; }
  .market-card .body { padding: 30px; }
  .contact-cards, .cards, .cards.three, .sol-grid, .sectors, .partners { grid-template-columns: 1fr; }
  .sector:nth-child(even) { padding-left: 0; border-left: 0; }
  .site-footer .top { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 26px; }
  .why-card { padding: 28px; }
  .brand img { height: 28px; }
  .page-body { padding: 60px 0 80px; }
}

/* Anchored headings land below the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Design-trial switcher (only on homepage versions) ---------- */
.version-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 40px;
  background: rgba(30,30,32,.92); color: #fff; font-size: .85rem; font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); max-width: calc(100vw - 24px); overflow-x: auto;
}
.version-bar span { padding: 0 10px 0 12px; color: #9a9aa0; white-space: nowrap; }
.version-bar a { padding: 8px 14px; border-radius: 30px; white-space: nowrap; color: #e8e8ea; }
.version-bar a:hover { background: rgba(255,255,255,.12); }
.version-bar a[aria-current="page"] { background: var(--red); color: #fff; }
@media (max-width: 640px) { .version-bar { bottom: 10px; font-size: .78rem; padding: 4px; } .version-bar a { padding: 7px 11px; } .version-bar span { display: none; } }

/* ---------- Photos ---------- */
.hero-photo { position: absolute; right: max(0px, calc((100vw - 1440px) / 2)); top: 50%; transform: translateY(-50%); width: min(46vw, 640px); z-index: 1; pointer-events: none; mix-blend-mode: multiply; }
.hero-photo img { width: 100%; height: auto; }
.market-card .art img { width: 100%; height: 100%; object-fit: cover; }
.market-card .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,22,.05) 20%, rgba(20,20,22,.88) 100%); }
.market-card .art { opacity: 1; }
.sol-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.figure { margin: 26px 0 34px; border-radius: 12px; overflow: hidden; background: var(--grey-50); }
.figure img { width: 100%; height: auto; display: block; }
.figure figcaption { font-size: .85rem; color: var(--muted); padding: 10px 14px; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 34px; }
.figure-pair .figure { margin: 0; }
@media (max-width: 1020px) { .hero-photo { opacity: .25; width: 70vw; } }
@media (max-width: 640px) {
  .hero-photo { display: none; }
  .figure-pair { grid-template-columns: 1fr; }
}
