/* The Yong Technologies — public site
   Palette: navy ink + the logo's gold/bronze on a cool porcelain ground.
   Type: Lora (headings), Inter (text). One signature element: the gold "Y" swoosh under the hero. */

@font-face { font-family: "Lora"; src: url("../fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic-var.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600 700; font-display: swap; }

:root {
  --ink: #14213A;
  --ink-2: #1D2D4C;
  --ink-3: #2B3E63;
  --gold: #C9A24A;
  --gold-light: #E9D59E;
  --bronze: #8A5A22;      /* gold dark enough for text on light backgrounds */
  --paper: #F5F6F8;
  --white: #FFFFFF;
  --text: #1F2733;
  --muted: #586274;
  --line: #DDE2EA;
  --line-soft: #E9ECF1;
  --ok: #1F7A4D;
  --err: #B3261E;
  --radius: 14px;
  --radius-s: 8px;
  --wrap: 1200px;
  --gut: 24px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(20, 33, 58, .06), 0 8px 24px rgba(20, 33, 58, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.65 var(--sans); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 64ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; white-space: nowrap; align-items: center; gap: .55em; padding: .82em 1.35em; border-radius: 999px; font: 600 .98rem/1 var(--sans);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); color: #fff; }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-line-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-line-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: .6em 1em; font-size: .9rem; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow .ic { transition: transform .15s; }
.link-arrow:hover .ic { transform: translateX(3px); }

/* ------------------------------------------------------------------ top bar + header */
.topbar { background: var(--ink); color: #D6DCE6; font-size: .86rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #E9EDF3; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.topbar a:hover { color: var(--gold-light); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar .langs { display: flex; gap: 2px; }
.topbar .langs a { padding: 2px 7px; border-radius: 4px; font-weight: 600; font-size: .8rem; }
.topbar .langs a[aria-current="true"] { background: var(--gold); color: var(--ink); }
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand img { height: 60px; width: auto; }
.mainnav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.mainnav > ul > li { position: relative; }
.mainnav a.top, .mainnav button.top { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px; color: var(--ink);
  font: 500 .97rem var(--sans); text-decoration: none; background: none; border: 0; cursor: pointer; }
.mainnav a.top:hover, .mainnav button.top:hover, .mainnav li.open > button.top { background: var(--paper); }
.mainnav a.top[aria-current="page"] { color: var(--bronze); }
.mainnav .ic-chev { width: 15px; height: 15px; transition: transform .15s; }
.mainnav li.open .ic-chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; display: none; z-index: 50; }
.mainnav li.open > .dropdown { display: block; }
.dropdown a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; }
.dropdown a:hover { background: var(--paper); color: var(--ink); }
.dropdown a .ic { color: var(--bronze); margin-top: 2px; }
.dropdown .d-title { font-weight: 600; color: var(--ink); display: block; line-height: 1.3; }
.dropdown .d-sub { color: var(--muted); font-size: .84rem; line-height: 1.35; display: block; margin-top: 2px; }
.mega { width: min(900px, 92vw); left: 50%; transform: translateX(-38%); padding: 18px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; }
.mega-foot { border-top: 1px solid var(--line-soft); margin-top: 10px; padding: 10px 10px 0; display: flex; justify-content: space-between; align-items: center; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; color: var(--ink); }
.menu-toggle .ic { width: 22px; height: 22px; }

/* ------------------------------------------------------------------ flash messages */
.flashes { max-width: var(--wrap); margin: 18px auto 0; padding: 0 var(--gut); }
.flash { padding: 13px 16px; border-radius: 10px; margin-bottom: 10px; font-weight: 500; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.flash.success { background: #EDF7F1; border-color: #BFE3CE; color: #155C38; }
.flash.error { background: #FCEDEC; border-color: #F2C3BF; color: #8C1D17; }
.test-banner { background: #FFF4CF; color: #6B4E00; text-align: center; font-size: .9rem; padding: 8px 12px; border-bottom: 1px solid #F1DC8F; }

/* ------------------------------------------------------------------ hero slideshow */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.slides { position: relative; height: clamp(520px, 80vh, 760px); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,33,58,.92) 0%, rgba(20,33,58,.72) 42%, rgba(20,33,58,.18) 78%, rgba(20,33,58,.05) 100%); }
.slide-copy { position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; }
.slide-copy > .wrap { width: 100%; }
.slide-copy .inner { max-width: 640px; padding-bottom: 40px; }
.slide-copy h1, .slide-copy h2 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.7rem); margin-bottom: .35em; }
.slide-copy p { font-size: 1.15rem; color: #DCE3EE; max-width: 52ch; }
.slide-copy .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.slide:not(.active) .slide-copy { visibility: hidden; }
.slide.active .slide-copy .inner { animation: rise .9s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-controls { position: absolute; z-index: 5; right: var(--gut); bottom: 92px; display: flex; gap: 8px; align-items: center; }
.hero-controls button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(20,33,58,.45); color: #fff;
  display: grid; place-items: center; cursor: pointer; }
.hero-controls button:hover { background: rgba(255,255,255,.15); }
.dots { display: flex; gap: 6px; margin-right: 6px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); }
.dots button[aria-current="true"] { background: var(--gold); }
.hero-swoosh { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 4; width: 100%; height: 110px; pointer-events: none; }
.hero-static { position: relative; padding: 110px 0 140px; background: var(--ink); }

/* page heading band (interior pages) */
.page-head { background: var(--ink); color: #fff; position: relative; padding: 70px 0 96px; overflow: hidden; }
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head .lead { color: #CDD6E3; }
.page-head .crumbs { font-size: .88rem; margin-bottom: 14px; color: #AEB9CB; }
.page-head .crumbs a { color: #D9E0EA; text-decoration: none; }
.page-head .crumbs a:hover { color: var(--gold-light); }
.page-head .swoosh-line { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; }
.page-head.has-image { padding: 90px 0 110px; }
.page-head.has-image .bg { position: absolute; inset: 0; opacity: .28; }
.page-head.has-image .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-head .wrap { position: relative; }

/* ------------------------------------------------------------------ sections */
.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section.white { background: var(--white); }
.section.ink { background: var(--ink); color: #DCE3EE; }
.section.ink h2, .section.ink h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head p { margin: .6em 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }

/* industries: tall image tiles */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ind-tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; color: #fff; text-decoration: none; display: flex; align-items: flex-end; background: var(--ink-2); }
.ind-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ind-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,33,58,.05) 0%, rgba(20,33,58,.55) 42%, rgba(20,33,58,.95) 72%, rgba(20,33,58,.97) 100%); }
.ind-tile .t { position: relative; z-index: 1; padding: 26px; }
.ind-tile h3 { color: #fff; font-size: 1.6rem; margin-bottom: .3em; }
.ind-tile p { color: #DCE3EE; margin: 0 0 12px; font-size: .98rem; }
.ind-tile .link-arrow { color: var(--gold-light); }
.ind-tile:hover img { transform: scale(1.04); }
.ind-tile:hover { color: #fff; }

/* story band */
.story-media { position: relative; }
.story-media img { border-radius: var(--radius); }
.story-media .badge { position: absolute; left: -18px; bottom: -18px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px 22px; max-width: 240px; }
.story-media .badge strong { display: block; font: 600 2.1rem/1 var(--serif); color: var(--gold-light); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 30px 0; }
.facts div { padding: 18px 14px 18px 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts strong { display: block; font: 600 1.9rem/1.1 var(--serif); color: var(--ink); }
.facts span { font-size: .88rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }

/* process: a real sequence, so it is numbered */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.process li { list-style: none; padding: 0 24px 0 0; position: relative; }
.process li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--ink); font: 600 1.2rem var(--serif); background: var(--paper); position: relative; z-index: 1; margin-bottom: 18px; }
.process li::after { content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 1.5px; background: var(--gold); opacity: .5; }
.process li:last-child::after { display: none; }
.section.white .process li::before { background: #fff; }
.process h3 { font-size: 1.18rem; }
.process p { color: var(--muted); font-size: .97rem; }
.process ul { padding-left: 1.1em; margin: 8px 0 0; color: var(--muted); font-size: .92rem; }

/* why us */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why .ic-wrap { width: 48px; height: 48px; border-radius: 12px; background: rgba(201,162,74,.16); color: var(--gold-light); display: grid; place-items: center; margin-bottom: 14px; }
.why .ic-wrap .ic { width: 24px; height: 24px; }
.why h3 { font-size: 1.12rem; }
.why p { font-size: .96rem; color: #C3CCDA; margin: 0; }

/* services: one panel with internal dividers (not a card kit) */
.svc-panel { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc-panel a { padding: 30px 28px 28px; text-decoration: none; color: var(--text); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.svc-panel a:nth-child(3n) { border-right: 0; }
.svc-panel a:nth-last-child(-n+3) { border-bottom: 0; }
.svc-panel a:hover { background: #FBFAF6; }
.svc-panel .ic { width: 30px; height: 30px; color: var(--bronze); }
.svc-panel h3 { margin: 6px 0 0; font-size: 1.24rem; }
.svc-panel p { margin: 0; color: var(--muted); font-size: .97rem; flex: 1; }
.svc-panel .link-arrow { margin-top: 6px; font-size: .92rem; }

/* work (portfolio) */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work-card { text-decoration: none; color: var(--text); display: block; }
.frame { border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.frame .bar { height: 22px; background: #EEF1F5; display: flex; gap: 5px; align-items: center; padding: 0 9px; }
.frame .bar i { width: 7px; height: 7px; border-radius: 50%; background: #CDD3DC; display: block; }
.frame .shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line-soft); }
.frame .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.frame.plain .shot { aspect-ratio: 4 / 3; }
.frame.plain .shot img { object-fit: contain; background: #fff; padding: 12px; }
.work-card:hover .shot img { transform: scale(1.025); }
.work-card h3 { font-size: 1.12rem; margin: 16px 0 4px; }
.work-card .meta { color: var(--muted); font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .9rem; text-decoration: none; font-weight: 500; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-bottom: 8px; }
.filters .lbl { font-size: .86rem; color: var(--muted); margin-right: 4px; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote .ic { width: 28px; height: 28px; color: var(--gold); margin-bottom: 12px; }
.quote blockquote { margin: 0 0 18px; font: italic 400 1.1rem/1.6 var(--serif); color: var(--ink); flex: 1; }
.quotes.clamp blockquote { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
.quotes.clamp figcaption { margin-top: auto; }
.quotes.masonry { display: block; columns: 3 320px; column-gap: 28px; }
.quotes.masonry .quote { break-inside: avoid; margin-bottom: 28px; }
.quote cite { font-style: normal; font-weight: 600; color: var(--ink); }
.quote cite span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }

/* logo wall */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logos div { background: #fff; display: grid; place-items: center; padding: 22px; min-height: 110px; }
.logos img { max-height: 62px; max-width: 100%; object-fit: contain; }

/* blog cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { text-decoration: none; color: var(--text); display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.post-card .img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--line-soft); }
.post-card .img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .b { padding: 22px 24px 26px; }
.post-card .date { color: var(--muted); font-size: .85rem; }
.post-card h3 { font-size: 1.2rem; margin: 6px 0 8px; }
.post-card p { color: var(--muted); font-size: .96rem; margin: 0; }
.post-card:hover h3 { color: var(--bronze); }

/* call to action band */
.cta-band { background: var(--ink); color: #fff; border-radius: 20px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #CDD6E3; margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta-band .phone { color: var(--gold-light); font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; font-size: 1.15rem; }

/* ------------------------------------------------------------------ content pages */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.75rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose img { border-radius: 10px; margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); font: italic 1.15rem/1.6 var(--serif); color: var(--ink); }
.prose a:not(.btn) { color: var(--bronze); }
table.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .98rem; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare thead th { background: var(--ink); color: #fff; font-weight: 600; }
table.compare thead th:nth-child(2) { background: var(--gold); color: var(--ink); }
table.compare tbody th { color: var(--ink); font-weight: 600; width: 22%; }
table.compare tbody td:nth-child(2) { background: #FBF7EC; font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .ic { color: var(--bronze); margin-top: 3px; }
.checklist.two { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.aside-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 110px; }
.aside-box h3 { font-size: 1.15rem; }
.aside-box .btn { width: 100%; justify-content: center; margin-top: 8px; }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--text); display: flex; gap: 16px; }
.svc-item .ic { width: 28px; height: 28px; color: var(--bronze); margin-top: 3px; }
.svc-item h3 { font-size: 1.15rem; margin-bottom: .3em; }
.svc-item p { margin: 0; color: var(--muted); font-size: .96rem; }
.svc-item:hover { border-color: var(--gold); }
.group-block { padding: 36px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 4fr 8fr; gap: 40px; }
.group-block:first-child { border-top: 0; padding-top: 0; }
.group-block .gtitle { display: flex; gap: 14px; align-items: flex-start; }
.group-block .gtitle .ic { width: 32px; height: 32px; color: var(--bronze); margin-top: 4px; }
.group-block ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.group-block ul a { text-decoration: none; color: var(--ink); font-weight: 500; display: flex; gap: 8px; align-items: baseline; }
.group-block ul a:hover { color: var(--bronze); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 1.08rem var(--serif); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--bronze); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .a { padding-top: 10px; color: var(--text); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--gold); }
.timeline li { padding: 0 0 26px 26px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.timeline .yr { font: 600 1.15rem var(--serif); color: var(--ink); }
.then-now { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.then-now figure { margin: 0; text-align: center; }
.then-now img { max-height: 110px; margin: 0 auto 10px; object-fit: contain; }
.then-now figcaption { font-size: .9rem; color: var(--muted); }
.then-now .arrow { color: var(--gold); }
.founder { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.founder img { border-radius: var(--radius); }
.founder .role { color: var(--muted); margin-top: -4px; }

/* clients page */
.client-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.client-groups h3 { display: flex; gap: 10px; align-items: center; font-size: 1.2rem; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.client-groups ul { list-style: none; padding: 0; margin: 0; columns: 1; }
.client-groups li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: .97rem; }
.client-groups li span { color: var(--muted); font-size: .84rem; display: block; }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .field .label { display: block; font-weight: 600; font-size: .94rem; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: .84rem; color: var(--muted); margin-top: 5px; }
.field .err { color: var(--err); font-size: .88rem; margin-top: 5px; font-weight: 500; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=url], input[type=search], input[type=number], input[type=date], select, textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201,162,74,.25); }
.field.has-err input, .field.has-err textarea { border-color: var(--err); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 500; font-size: .96rem; }
.choice input { margin-top: 4px; accent-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: #F6F7FA; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .ic { color: var(--bronze); width: 24px; height: 24px; margin-top: 2px; }
.contact-list strong { display: block; color: var(--ink); }
.map { border: 0; width: 100%; height: 280px; border-radius: var(--radius); }

/* start-a-project wizard */
.wizard-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: ws; flex-wrap: wrap; }
.wizard-steps li { flex: 1; min-width: 110px; font-size: .85rem; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); counter-increment: ws; }
.wizard-steps li::before { content: counter(ws) ". "; }
.wizard-steps li.done, .wizard-steps li.current { border-color: var(--gold); color: var(--ink); font-weight: 600; }
.js .wstep { display: none; }
.js .wstep.current { display: block; }
.wstep { margin-bottom: 30px; }
.wstep > h2 { font-size: 1.6rem; }
.wnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.no-js .wnav { display: none; }
.cond { display: none; }
.cond.show { display: block; }
.no-js .cond { display: block; }

/* domain search */
.domain-box { display: flex; gap: 10px; max-width: 640px; }
.domain-box input { font-size: 1.1rem; }
.domain-results { list-style: none; padding: 0; margin: 26px 0 0; max-width: 760px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.domain-results li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.domain-results li:first-child { border-top: 0; }
.domain-results .d { font-weight: 600; color: var(--ink); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.tag.ok { background: #E3F4EA; color: #155C38; }
.tag.no { background: #F0F1F4; color: #5B6577; }
.tag.warn { background: #FFF2D6; color: #7A5600; }
.tag.err { background: #FCE7E5; color: #8C1D17; }

/* job */
.jobs { display: grid; gap: 14px; }
.job-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; text-decoration: none; color: var(--text); }
.job-row h3 { margin: 0 0 4px; font-size: 1.2rem; }
.job-row:hover { border-color: var(--gold); }

/* portfolio item */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid button { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; background: rgba(12,19,34,.94); z-index: 100; display: none; align-items: center; justify-content: center; padding: 50px 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 92vw; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: #BFC9D8; margin-top: 0; position: relative; }
.footer-top { padding: 72px 0 40px; display: grid; grid-template-columns: 1.55fr 1fr 1fr 1.25fr; gap: 36px; }
.site-footer h3 { color: #fff; font: 600 1rem var(--sans); margin-bottom: 14px; }
.site-footer a { color: #DCE3EE; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .95rem; }
.footer-brand img { height: 74px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; }
.footer-contact { display: grid; gap: 10px; font-size: .95rem; margin-top: 14px; }
.footer-contact div { display: flex; gap: 10px; }
.addr-line { white-space: nowrap; }
@media (max-width: 360px) { .addr-line { white-space: normal; } }
.footer-contact .ic { color: var(--gold); margin-top: 3px; }
.nl-form { display: flex; gap: 8px; margin-top: 12px; }
.nl-form input { background: var(--ink-2); border-color: var(--ink-3); color: #fff; }
.nl-form input::placeholder { color: #8FA0B9; }
.footer-bottom { border-top: 1px solid var(--ink-3); padding: 20px 0 26px; font-size: .86rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink-3); display: grid; place-items: center; }
.site-footer .social a:hover { border-color: var(--gold); }

/* ------------------------------------------------------------------ portal */
.portal { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding: 40px 0 80px; align-items: start; }
.portal-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 110px; }
.portal-nav a, .portal-nav button { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font: 500 .95rem var(--sans);
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left; }
.portal-nav a:hover, .portal-nav button:hover { background: var(--paper); }
.portal-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.portal-nav .ic { color: inherit; }
.portal h1 { font-size: 2rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tile .k { color: var(--muted); font-size: .88rem; }
.tile .v { font: 600 1.7rem/1.2 var(--serif); color: var(--ink); margin-top: 4px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); font-size: .95rem; vertical-align: top; }
.table th { background: #F7F8FA; font-weight: 600; color: var(--ink); font-size: .86rem; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #F0F1F4; color: #4A5468; }
.status.paid, .status.active, .status.completed, .status.accepted, .status.received { background: #E3F4EA; color: #155C38; }
.status.open, .status.sent, .status.trialing { background: #FFF2D6; color: #7A5600; }
.status.overdue, .status.past_due, .status.uncollectible, .status.canceled { background: #FCE7E5; color: #8C1D17; }
.progress { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--bronze)); }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 26px; }
.stages div { padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.stages div.done { border-color: #BFE3CE; background: #F2FAF5; color: #155C38; }
.stages div.current { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps-list li { display: flex; gap: 10px; align-items: center; font-size: .95rem; color: var(--muted); }
.steps-list li.done { color: var(--text); }
.steps-list .ic { color: var(--line); }
.steps-list li.done .ic { color: var(--ok); }
.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feed li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.feed .when { font-size: .84rem; color: var(--muted); }
.feed h4 { margin: 2px 0 6px; font-family: var(--sans); font-size: 1rem; }
.auth-card { max-width: 460px; margin: 56px auto 90px; }
.auth-card h1 { font-size: 2rem; }
.pending-box { max-width: 640px; margin: 60px auto; text-align: center; }
.key { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--paper); padding: 10px 14px; border-radius: 8px; word-break: break-all; font-size: .95rem; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .mainnav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn-gold { display: none; }
  .mainnav.open { display: block; position: fixed; inset: 0; top: 0; background: #fff; z-index: 60; overflow-y: auto; padding: 80px 20px 40px; }
  .mainnav.open > ul { flex-direction: column; align-items: stretch; }
  .mainnav.open a.top, .mainnav.open button.top { width: 100%; justify-content: space-between; font-size: 1.1rem; padding: 14px 10px; }
  .mainnav.open .dropdown { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 10px 8px; transform: none; width: auto; }
  .mainnav.open li.open > .dropdown { display: block; }
  .mainnav.open .mega-grid { grid-template-columns: 1fr; }
  .mainnav .close-menu { position: fixed; top: 18px; right: 18px; }
  .mainnav .mobile-cta { display: grid !important; gap: 10px; margin-top: 20px; }
  .why { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(4, 1fr); }
}
.mainnav .close-menu, .mainnav .mobile-cta { display: none; }
.mainnav.open .close-menu { display: inline-flex; }

@media (max-width: 900px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .grid-2, .split, .contact-grid, .founder, .group-block { grid-template-columns: 1fr; gap: 32px; }
  .industries, .grid-3, .quotes, .posts, .work-grid, .client-groups { grid-template-columns: 1fr 1fr; }
  .svc-panel { grid-template-columns: 1fr 1fr; }
  .svc-panel a:nth-child(3n) { border-right: 1px solid var(--line); }
  .svc-panel a:nth-child(2n) { border-right: 0; }
  .svc-panel a:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .svc-panel a:nth-last-child(-n+2) { border-bottom: 0; }
  .process { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .process li:nth-child(2)::after { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-band { grid-template-columns: 1fr; padding: 40px 30px; }
  .cta-band .actions { justify-content: flex-start; }
  .portal { grid-template-columns: 1fr; }
  .portal-nav { position: static; display: flex; overflow-x: auto; }
  .portal-nav a, .portal-nav button { white-space: nowrap; width: auto; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .aside-box { position: static; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .svc-list, .checklist.two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .topbar .hide-sm { display: none; }
  .topbar-left, .topbar-right { gap: 12px; }
  .topbar .wrap { gap: 10px; }
  .site-header .wrap { min-height: 70px; }
  .brand img { height: 46px; }
  .industries, .grid-3, .quotes, .posts, .work-grid, .client-groups, .svc-panel, .why, .tiles, .stages { grid-template-columns: 1fr; }
  .svc-panel a { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .svc-panel a:last-child { border-bottom: 0 !important; }
  .process { grid-template-columns: 1fr; }
  .process li::after { display: none; }
  .ind-tile { min-height: 320px; }
  .form .row, .choices { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .group-block ul { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .then-now { grid-template-columns: 1fr; }
  .then-now .arrow { transform: rotate(90deg); margin: 0 auto; }
  .story-media .badge { left: 12px; bottom: 12px; }
  .hero-controls { bottom: 70px; }
  .slide::after { background: linear-gradient(180deg, rgba(20,33,58,.55) 0%, rgba(20,33,58,.9) 100%); }
  .domain-box { flex-direction: column; }
  .table { display: block; overflow-x: auto; }
  .card { padding: 22px; }
  .job-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .portal-nav, .btn, .flashes { display: none !important; }
  body { background: #fff; }
}
@media (max-width: 360px) { .topbar-left a span { display: none; } }
