/* Royal Universys — shared stylesheet for the main site, /cctv/ and /ads/ */
:root {
  --brand: #f37d35; --brand-600: #e0641a; --brand-50: #fff4ec;
  --ink: #0b1526; --ink-2: #16233a; --ink-3: #24344f;
  --text: #2a3446; --muted: #5d6879; --line: #e4e8ef; --soft: #f5f7fa; --white: #fff;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 10px 30px rgba(11, 21, 38, .08); --shadow-lg: 0 24px 60px rgba(11, 21, 38, .16);
  --wrap: 1200px; --head: "Plus Jakarta Sans", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.65 var(--body); color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar + header */
.topbar { background: var(--ink); color: #c7cfdb; font-size: .85rem; }
.topbar .wrap { display: flex; gap: 22px; align-items: center; justify-content: space-between; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #e7ecf3; }
.topbar a:hover { color: var(--brand); }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; fill: var(--brand); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.logo img { width: 52px; height: 52px; }
.logo b { display: block; font: 800 1.12rem/1.1 var(--head); letter-spacing: .02em; color: var(--ink); }
.logo small { display: block; font-size: .7rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav li { position: relative; }
.nav a, .nav button.dd { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px; color: var(--ink-2); font: 600 .95rem var(--body); background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button.dd:hover, .nav a[aria-current="page"], .nav .active > button.dd { color: var(--brand-600); background: var(--brand-50); }
.nav button.dd::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav .sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.nav li:hover > .sub, .nav li:focus-within > .sub, .nav li.open > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { font-weight: 500; padding: 9px 12px; }
.nav .sub.cols { columns: 2; min-width: 440px; }
.nav .sub.cols li { break-inside: avoid; }
.nav .cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: auto; position: relative; transition: .2s; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 700 .95rem var(--body); border: 2px solid transparent; cursor: pointer; transition: .18s ease; text-align: center; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(243, 125, 53, .35); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero > img, .page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 15, 28, .92) 0%, rgba(8, 15, 28, .75) 45%, rgba(8, 15, 28, .25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 10vw, 120px); max-width: var(--wrap); }
.hero h1 { color: #fff; max-width: 15em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #d6dde8; max-width: 38em; margin-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .78rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.hero .eyebrow { color: var(--brand); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .84rem; color: #e9eef5; }
.badges span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.page-hero { position: relative; color: #fff; background: var(--ink); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 15, 28, .9), rgba(8, 15, 28, .55)); }
.page-hero .wrap { position: relative; z-index: 1; padding: clamp(60px, 9vw, 110px) 0 clamp(46px, 7vw, 80px); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18em; }
.page-hero p { color: #d6dde8; max-width: 44em; font-size: 1.08rem; margin: 0; }
.crumbs { font-size: .85rem; color: #aeb9c9; margin-bottom: 14px; }
.crumbs a { color: #e9eef5; } .crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 8px; opacity: .6; }

/* Sections */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--ink); color: #c9d2df; }
.section.dark h2, .section.dark h3 { color: #fff; }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head p { color: var(--muted); font-size: 1.06rem; }
.dark .sec-head p { color: #aeb9c9; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split.rev > :first-child { order: 2; }
.media-stack { position: relative; }
.media-stack img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-stack .float { position: absolute; right: -16px; bottom: -22px; background: var(--brand); color: #fff; border-radius: 14px; padding: 18px 22px; box-shadow: var(--shadow-lg); max-width: 220px; }
.media-stack .float b { display: block; font: 800 2rem/1 var(--head); }
.media-stack .float span { font-size: .88rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.ticks.two { grid-template-columns: 1fr 1fr; }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e0641a' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 13px no-repeat; }
.dark .ticks li { color: #e6ebf2; }
.prose { max-width: 760px; }
.prose p { color: var(--text); }
.lead-p { font-size: 1.1rem; color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: -56px; position: relative; z-index: 2; overflow: hidden; }
.stats div { padding: 26px 24px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font: 800 2.1rem/1.1 var(--head); color: var(--ink); }
.stats b i { font-style: normal; color: var(--brand); }
.stats span { color: var(--muted); font-size: .92rem; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s ease; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.card .ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card:hover .ph img { transform: scale(1.05); }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card .body p { color: var(--muted); font-size: .96rem; }
.card .more { margin-top: auto; font-weight: 700; color: var(--brand-600); display: inline-flex; gap: 6px; align-items: center; }
.card .more::after { content: "→"; transition: .2s; }
a.card:hover .more::after { transform: translateX(4px); }
.icard { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.icard .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); display: grid; place-items: center; margin-bottom: 16px; }
.icard .ic svg { width: 26px; height: 26px; fill: var(--brand-600); }
.icard p { color: var(--muted); font-size: .96rem; margin: 0; }
.dark .icard { background: var(--ink-2); border-color: var(--ink-3); }
.dark .icard p { color: #aeb9c9; }
.dark .icard .ic { background: rgba(243, 125, 53, .14); }

/* District tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; display: block; aspect-ratio: 1; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(5, 10, 20, .88)); font-size: .9rem; color: #e8edf4; }
.tile .cap b { display: block; color: var(--brand); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
a.tile:hover img { transform: scale(1.06); }
a.tile:hover { color: #fff; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 62px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 62px 1fr; gap: 26px; padding: 0 0 26px; position: relative; }
.timeline .yr { font: 800 1.05rem var(--head); color: var(--brand-600); padding-top: 2px; }
.timeline li::after { content: ""; position: absolute; left: 56px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline .tx { padding-left: 4px; }
.timeline .tx h3 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline .tx p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.gallery a:hover img { transform: scale(1.06); filter: brightness(.85); }
.gallery.big a:first-child { grid-column: span 2; grid-row: span 2; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(5, 9, 18, .94); display: none; align-items: center; justify-content: center; padding: 50px 60px; }
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.lb button:hover { background: var(--brand); }
.lb .x { top: 16px; right: 16px; } .lb .pv { left: 12px; top: 50%; } .lb .nx { right: 12px; top: 50%; }
.lb .ct { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #aeb9c9; font-size: .9rem; }
.gal-group { margin-bottom: 46px; }
.gal-group h3 { display: flex; gap: 12px; align-items: baseline; }
.gal-group h3 small { color: var(--muted); font-weight: 500; font-size: .88rem; }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logos div { background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 14px; aspect-ratio: 3 / 2; }
.logos img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(.15); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 18px; width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .track div { width: 170px; height: 96px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 12px; }
.marquee img { max-height: 64px; width: auto; object-fit: contain; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Quotes */
.quote { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 4px; right: 22px; font: 800 5.5rem/1 var(--head); color: var(--brand-50); }
.quote p { font-size: 1.06rem; color: var(--ink-2); position: relative; }
.quote .who { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.quote .who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote .who b { display: block; color: var(--ink); }
.quote .who span { font-size: .88rem; color: var(--muted); }

/* Products */
.prod { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.prod .ph { aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.prod .ph img { width: 100%; height: 100%; object-fit: cover; }
.prod.contain .ph img { object-fit: contain; padding: 14px; }
.prod h3 { font-size: .98rem; padding: 14px 16px 16px; margin: 0; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span, .chips a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.chips a:hover { border-color: var(--brand); color: var(--brand-600); }
.dark .chips span { background: var(--ink-2); border-color: var(--ink-3); color: #dfe5ee; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, #f59a52 100%); color: #fff; border-radius: 22px; padding: clamp(32px, 5vw, 56px); display: flex; gap: 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #fff3ea; font-size: 1.06rem; }
.cta-band .btn-light { background: #fff; color: var(--ink); }
.cta-band .btn-light:hover { background: var(--ink); color: #fff; }
.cta-band .btn-ghost { border-color: #fff; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 54px 18px 22px; font: 700 1.02rem var(--head); color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.cinfo { display: grid; gap: 16px; }
.cinfo .row { display: flex; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cinfo .row .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--brand-50); display: grid; place-items: center; }
.cinfo .row .ic svg { width: 22px; height: 22px; fill: var(--brand-600); }
.cinfo b { display: block; color: var(--ink); font-family: var(--head); }
.cinfo span, .cinfo a { color: var(--muted); }
.cinfo a:hover { color: var(--brand-600); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: 16px; }
.form input, .form select, .form textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #d5dbe5; border-radius: 10px; font: 400 1rem var(--body); color: var(--ink); background: #fbfcfd; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(243, 125, 53, .18); background: #fff; }
.form textarea { min-height: 130px; resize: vertical; }
.form .hp { position: absolute; left: -5000px; }
.form .status { margin-top: 14px; font-weight: 600; }
.form .status.ok { color: #127a3a; } .form .status.err { color: #b42318; }
.map { border: 0; width: 100%; height: 360px; border-radius: 18px; display: block; }

/* Footer */
.site-footer { background: var(--ink); color: #aeb9c9; padding: 70px 0 0; font-size: .94rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #c9d2df; }
.site-footer a:hover { color: var(--brand); }
.site-footer .logo b { color: #fff; } .site-footer .logo small { color: #8d9ab0; }
.site-footer .about p { margin: 16px 0; }
.certs { display: flex; gap: 8px; flex-wrap: wrap; }
.certs span { font-size: .76rem; padding: 6px 10px; border: 1px solid var(--ink-3); border-radius: 8px; color: #dfe5ee; }
.foot-bottom { border-top: 1px solid var(--ink-3); margin-top: 50px; padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .86rem; }
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0, 0, 0, .25); transition: transform .2s; }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .marquee .track { animation: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1100px) {
  .site-header { backdrop-filter: none; background: #fff; }
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 76px 0 0 0; background: #fff; overflow-y: auto; padding: 16px 20px 40px; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a, .nav button.dd { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.02rem; }
  .nav .sub, .nav .sub.cols { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; display: none; min-width: 0; columns: 1; }
  .nav li.open > .sub { display: block; }
  .nav li:hover > .sub { display: none; } .nav li.open:hover > .sub { display: block; }
  .nav .cta { margin: 12px 0 0; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .media-stack .float { right: 12px; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topbar .tb-right, .topbar .tb-left a[href^="mailto"] { display: none; }
  .topbar .wrap { min-height: 34px; justify-content: center; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile .cap { font-size: .8rem; padding: 30px 12px 12px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .ticks.two { grid-template-columns: 1fr; }
  .form .f2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery.big a:first-child { grid-column: span 2; grid-row: auto; }
  .timeline::before { left: 7px; } .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 30px; } .timeline li::after { left: 1px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .lb { padding: 60px 10px; }
  .logo b { font-size: 1rem; } .logo img { width: 44px; height: 44px; }
  .stats b { font-size: 1.7rem; }
}
