/* GBKSoft prototype: shared styles */
:root {
  --paper: #f6f7f9;
  --panel: #ffffff;
  --ink: #000000;
  --ink-2: #4a4f57;
  --line: #d6dae0;
  --cobalt: #0050b4;
  --cobalt-ink: #003d8a;
  --sun: #ffd43b;
  --night: #0d1b2e;
  --night-line: rgba(255,255,255,.16);
  --night-ink: #e8edf4;
  --night-ink-2: #b4c0d0;
  --build: #0b2a55;
  --modern: #1f5aa6;
  --rescue: #4a86c8;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Draft notice */
.draft {
  background: var(--sun);
  color: var(--ink);
  font-size: 14px;
  padding: 8px 0;
}
.draft p { margin: 0; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px; flex-wrap: wrap;
}
.wordmark img { display: block; height: 18px; width: auto; }
.wordmark {
  font: 800 22px/1 var(--display);
  
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--cobalt); }
.nav .btn { margin-left: 4px; }
.nav .lang { font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
[hidden] { display: none !important; }
/* Sticky header with a compact menu on small screens */
.site-head { position: sticky; top: 0; z-index: 50; }
section[id], [id="contact"] { scroll-margin-top: 84px; }
.menu-toggle { display: none; align-items: center; gap: 8px; background: none; border: 2px solid var(--ink); border-radius: 2px; padding: 7px 12px; font: 600 15px/1 var(--body); color: var(--ink); cursor: pointer; }
.menu-toggle .bars { display: inline-block; width: 16px; height: 2px; background: var(--ink); position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: var(--ink); }
.menu-toggle .bars::before { top: -5px; } .menu-toggle .bars::after { top: 5px; }
@media (max-width: 1099px) {
  .site-head .wrap { flex-wrap: nowrap; min-height: 60px; position: relative; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
         gap: 16px; padding: 16px var(--gutter) 22px; background: var(--paper); border-bottom: 1px solid var(--line);
         box-shadow: 0 8px 16px rgba(0,0,0,.06); }
  .site-head.open .nav { display: flex; }
  .nav .btn { margin-left: 0; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff !important;
  font: 600 15px/1.2 var(--body);
  text-decoration: none;
  border-radius: 2px;
}
.btn:hover { background: var(--cobalt); border-color: var(--cobalt); }
.btn.ghost { background: transparent; color: var(--ink) !important; }
.btn.ghost:hover { background: var(--ink); color: #fff !important; border-color: var(--ink); }

/* Type */
.display {
  font-family: var(--display);
  font-weight: 800;
  
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
}
.outline { color: var(--cobalt); }
h2.section-title {
  font: 800 clamp(28px, 4vw, 44px)/1.05 var(--display);
  
  margin: 0 0 12px;
}
.lede { color: var(--ink-2); max-width: 60ch; margin: 0; }

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
@media (max-width: 720px) { section { padding: 52px 0; } }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 7fr 5fr; align-items: end; } }
.hero h1 { font-size: clamp(40px, 7.2vw, 92px); }
.hero h1 span { display: block; }
.hero-sub { font-size: 19px; color: var(--ink-2); max-width: 46ch; margin: 28px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.since {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-2); margin-bottom: 28px;
}
.since i {
  width: 22px; height: 14px; display: inline-block;
  background: linear-gradient(var(--cobalt) 50%, var(--sun) 50%);
}

/* Ledger: the hero's signature */
.ledger {
  background: var(--panel);
  border: 2px solid var(--ink);
  padding: 22px 22px 14px;
}
.ledger h2 { font: 700 16px/1.3 var(--body); margin: 0 0 4px; }
.ledger p.note { font-size: 13px; color: var(--ink-2); margin: 0 0 14px; }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { text-align: left; padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.ledger th { font-weight: 600; font-size: 15px; }
.ledger td.what { font-size: 13px; color: var(--ink-2); padding-right: 12px; }
.ledger td.hrs {
  text-align: right; white-space: nowrap;
  font: 800 22px/1 var(--display); 
  font-variant-numeric: tabular-nums;
}
.ledger td.hrs small { display: block; font: 500 11px/1.3 var(--body); color: var(--ink-2); margin-top: 3px; }

.ledger tr.tier-row th {
  padding: 14px 0 6px; border-top: 2px solid var(--ink);
  font: 700 13px/1.3 var(--body); color: var(--cobalt);
}
.ledger tr.tier-row:first-child th { padding-top: 4px; }
.ledger tr.tier-row th span { color: var(--ink-2); font-weight: 500; margin-left: 8px; }
.ledger .ledger-link { margin: 12px 0 0; font-size: 14px; }

/* Proof strip */
.proof { padding: 28px 0; background: var(--panel); }
.proof .wrap { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: baseline; }
.proof strong { font: 800 26px/1 var(--display);  margin-right: 8px; }
.proof span { color: var(--ink-2); font-size: 15px; }
.verify { font-size: 12px; background: var(--sun); color: var(--ink); padding: 1px 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.partners .verify { color: var(--ink); }

/* Services */
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
  margin-top: 36px; border-top: 2px solid var(--ink);
}
@media (min-width: 760px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.service { padding: 26px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) {
  .service { padding: 28px 32px 28px 0; }
  .service:nth-child(even) { padding: 28px 0 28px 32px; border-left: 1px solid var(--line); }
}
.service h3 { font: 700 22px/1.25 var(--body); margin: 0 0 8px; }
.service p { margin: 0 0 10px; color: var(--ink-2); max-width: 52ch; }
.service .stack { font-size: 14px; color: var(--ink); margin: 0; }
.also { margin-top: 24px; color: var(--ink-2); }

/* Work: grouped by project size */
.tiers { margin-top: 36px; }
.tier { display: grid; grid-template-columns: 1fr; gap: 20px 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.tier:first-child { border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .tier { grid-template-columns: 3fr 9fr; } }
.tier-head h3 { font: 800 26px/1.1 var(--display);  margin: 0 0 8px; }
.tier-head .band { font: 700 15px/1.3 var(--body); color: var(--cobalt); margin: 0 0 8px; }
.tier-head p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 36ch; }
.tiles { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
.shot { margin: 0 0 14px; background: var(--tint, #e8eef6); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.shot img { max-height: 88%; width: auto; object-fit: contain; }
.tile h4 { font: 700 20px/1.25 var(--body); margin: 0; }
.tile .kind { font-size: 14px; color: var(--ink-2); margin: 2px 0 8px; }
.tile p { margin: 0 0 8px; color: var(--ink-2); font-size: 16px; }
.tile .hours { font: 800 22px/1 var(--display);  font-variant-numeric: tabular-nums; color: var(--ink); margin-top: 12px; }
.tile .hours small { font: 500 13px var(--body); color: var(--ink-2); margin-left: 8px; }

/* Why */
.why-grid { display: grid; gap: 32px 48px; grid-template-columns: 1fr; margin-top: 36px; }
@media (min-width: 860px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why h3 { font: 700 20px/1.3 var(--body); margin: 0 0 6px; }
.why p { margin: 0; color: var(--ink-2); max-width: 54ch; }

/* Quotes */
.quotes { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: var(--panel); border-left: 4px solid var(--cobalt); padding: 20px 22px; }
.quote p { margin: 0 0 12px; }
.quote footer { font-size: 14px; color: var(--ink-2); }
.placeholder { border-left-color: var(--sun); }
.placeholder p { color: var(--ink-2); font-style: italic; }

/* Process: a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 22px 24px 22px 0; border-top: 2px solid var(--ink); }
@media (min-width: 860px) { .steps li + li { padding-left: 24px; border-left: 1px solid var(--line); } }
.steps li::before {
  content: counter(step);
  display: block; font: 800 40px/1 var(--display); 
  color: var(--cobalt); margin-bottom: 14px;
}
.steps h3 { font: 700 18px/1.3 var(--body); margin: 0 0 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Partners */
.partners { background: var(--ink); color: #fff; }
.partners .section-title { color: #fff; }
.partners .lede { color: #c9ced6; }
.tracks { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 860px) { .tracks { grid-template-columns: 1fr 1fr; } }
.track { border: 1px solid #3a3f47; padding: 26px; }
.track h3 { font: 700 22px/1.25 var(--body); margin: 0 0 8px; }
.track p { margin: 0 0 18px; color: #c9ced6; }
.partners .btn { background: #fff; border-color: #fff; color: var(--ink) !important; }
.partners .btn:hover { background: var(--sun); border-color: var(--sun); }

/* Contact */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 6fr 5fr; } }
.contact h2 { font-size: clamp(34px, 5vw, 60px); }
.person { background: var(--panel); border: 2px solid var(--ink); padding: 24px; align-self: start; }
.person h3 { font: 700 20px/1.3 var(--body); margin: 0; }
.person .role { color: var(--ink-2); margin: 2px 0 0; font-size: 15px; }
.person-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.person-head img { width: 96px; height: 96px; object-fit: cover; border: 2px solid var(--ink); flex: none; }
.person ul { list-style: none; padding: 0; margin: 0 0 18px; }
.person li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }

/* Pricing */
.prices { display: grid; gap: 0; grid-template-columns: 1fr; margin-top: 32px; border-top: 2px solid var(--ink); }
@media (min-width: 860px) { .prices { grid-template-columns: repeat(3, 1fr); } }
.price { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .price + .price { padding-left: 24px; border-left: 1px solid var(--line); } .price { border-bottom: 0; } }
.price h3 { font: 700 18px/1.3 var(--body); margin: 0 0 10px; }
.price .amount { font: 800 26px/1.1 var(--display);  margin: 0; }
.price .time { color: var(--cobalt); font-weight: 600; margin: 6px 0 10px; }
.price p { margin: 0; color: var(--ink-2); }

/* FAQ */
.faq-wrap { display: grid; gap: 24px 64px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 4fr 8fr; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 24px/1 var(--body); color: var(--cobalt); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 64ch; }

/* Enquiry form */
.enquiry { margin-top: 8px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row .field { min-width: 220px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--body); padding: 11px 12px; border: 2px solid var(--ink);
  background: var(--panel); color: var(--ink); border-radius: 2px; width: 100%;
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.enquiry button { cursor: pointer; }
.form-note { min-height: 1.4em; margin: 12px 0 4px; font-weight: 600; color: var(--cobalt-ink); }
.small { font-size: 14px; color: var(--ink-2); }

/* About page */
.page-hero h1 { font-size: clamp(40px, 7vw, 88px); }
.page-hero h1 span { display: block; }
.story { display: grid; gap: 32px 64px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .story { grid-template-columns: 7fr 5fr; } .story .section-title { grid-column: 1 / -1; } }
.story-body p { margin: 0 0 18px; max-width: 62ch; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; }
.timeline strong { display: block; font: 800 20px/1.2 var(--display);  }
.timeline span { color: var(--ink-2); font-size: 15px; }
.founders { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 860px) { .founders { grid-template-columns: repeat(3, 1fr); } }
.founder { background: var(--panel); border-top: 2px solid var(--ink); padding: 22px; }
.founder h3 { font: 700 20px/1.3 var(--body); margin: 0; }
.founder .role { color: var(--ink-2); font-size: 15px; margin: 2px 0 12px; }
.founder p { margin: 0 0 10px; }
.founder .person-head .role { margin-bottom: 0; }

/* Footer */
.site-foot { border-top: 2px solid var(--ink); padding: 40px 0 56px; font-size: 14px; color: var(--ink-2); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-foot h4 { font: 600 14px var(--body); color: var(--ink); margin: 0 0 8px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { padding: 3px 0; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--cobalt); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Ukrainian: longer words need a smaller hero */
html[lang="uk"] .hero h1 { font-size: clamp(34px, 5.4vw, 70px); }
html[lang="uk"] .page-hero h1 { font-size: clamp(34px, 5.4vw, 70px); }
.ledger th[scope="row"] { padding-right: 12px; }

.hero-promise { font-weight: 600; margin: -16px 0 28px; max-width: 46ch; }
.founder-quote { margin: 12px 0 0; padding-left: 14px; border-left: 3px solid var(--cobalt); font-style: italic; }
.founder-quote p { margin: 0; }

/* Language flags */
.langs { display: inline-flex; gap: 6px; align-items: center; }
.flag { display: inline-flex; padding: 3px; border: 1px solid transparent; border-radius: 2px; line-height: 0; }
.flag svg { display: block; height: 14px; width: auto; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
a.flag { opacity: .55; }
a.flag:hover, a.flag:focus-visible { opacity: 1; }
.flag.current { border-color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Real products: links and live badges */
.ledger th a, .tile h4 a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.ledger th a:hover, .tile h4 a:hover { color: var(--cobalt); text-decoration-color: currentColor; }
.tile .case-link { font-size: 14px; margin-top: 10px; }
.live { display: inline-block; margin: 4px 0 0; }
.live a { display: inline-block; font: 600 13px/1 var(--body); color: #0b6b2f; background: #e5f4e4; padding: 6px 10px; border-radius: 2px; text-decoration: none; }
.live a::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #1a9a4a; margin-right: 7px; vertical-align: 1px; }

.ledger .ledger-help { font-size: 13px; color: var(--ink-2); margin: 12px 0 0; }

/* Build / Modernize / Rescue colours */
.c-build { color: var(--build); }
.c-modern { color: var(--modern); }
.c-rescue { color: var(--rescue); }

.shot-link { display: block; }
.shot-link .shot img { transition: transform .25s ease; }
.shot-link:hover .shot img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .shot-link:hover .shot img { transform: none; } }

.proof p { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.proof-logo { height: 22px; width: auto; margin-right: 4px; }

/* Keep grids from being stretched by wide content */
.tier, .tiles { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 900px) { .tier { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }
.tile, .tier > * { min-width: 0; }
.shot img { max-width: 100%; height: auto; }

/* Alternating dark and light sections */
.tint { background: var(--panel); }
.dark { background: var(--night); color: var(--night-ink); }
section.dark + section, section + section.dark { border-top: 0; }
.dark .section-title, .dark h3, .dark .display { color: #fff; }
.dark .lede, .dark p { color: var(--night-ink-2); }
.dark a { color: #9cc3ff; }
.dark .services-grid, .dark .steps li { border-top-color: #fff; }
.dark .service, .dark .steps li + li { border-color: var(--night-line); }
.dark .service .stack { color: var(--night-ink); }
.dark .c-build { color: #e3edfb; }
.dark .c-modern { color: #a9cbf6; }
.dark .c-rescue { color: #6aa6ea; }
.dark .steps li::before { color: #9cc3ff; }
.dark .why h3 { color: #fff; }
.partners.dark { background: var(--night); }
.partners.dark .track { border-color: var(--night-line); }
.dark .verify { color: var(--ink); }

/* Hero panel shading */
.ledger { border: 1px solid #d3dbe6; background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%); box-shadow: 0 18px 40px -18px rgba(13, 27, 46, .28); }
.ledger tr.tier-row th, .ledger tr.tier-row:first-child th { background: #e9f0f9; border-top: 0; padding: 8px 10px; border-radius: 2px; }
.ledger tr.tier-row + tr th, .ledger tr.tier-row + tr td { border-top: 0; }
.ledger tbody tr:not(.tier-row) th, .ledger tbody tr:not(.tier-row) td { padding-left: 2px; }
.ledger tr:not(.tier-row) + tr.tier-row th { margin-top: 8px; }
.ledger table { border-collapse: separate; border-spacing: 0 0; }
.ledger tr:not(.tier-row) + tr.tier-row th { border-top: 12px solid transparent; background-clip: padding-box; }

/* Ratings and awards band */
.proof { padding: 40px 0 36px; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.proof .wrap { display: block; }
.proof-title { font: 600 14px/1.4 var(--body); color: var(--ink-2); margin: 0 0 18px; }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
.badge { min-width: 220px; padding: 20px 28px; border: 1px solid #d3dbe6; border-radius: 4px; background: linear-gradient(180deg, #fff 0%, #f5f8fc 100%); box-shadow: 0 12px 28px -18px rgba(13,27,46,.35); }
.badge img { height: 28px; width: auto; margin: 0 auto 12px; display: block; }
.badge p { margin: 0; font-size: 16px; color: var(--ink); display: block; }
.badge strong { font: 800 30px/1 var(--display); margin-right: 4px; }
.badge .sub { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.proof-note { margin: 14px 0 0; }
.proof .proof-title, .proof .proof-note { display: block; text-align: center; }
.proof .badge p { display: block; }
.proof .proof-title { margin: 0 0 18px; }
.proof .proof-note { margin: 16px 0 0; }

/* Insights */
.post { padding: 56px 0 80px; }
.post-wrap { max-width: 760px; }
.post-meta a { font-weight: 600; text-decoration: none; }
.post-title { font-size: clamp(32px, 5vw, 56px); margin: 10px 0 24px; }
.post-byline { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.post-byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.post-byline p { margin: 0; font-size: 15px; color: var(--ink-2); }
.post-body p, .post-body li { font-size: 18px; line-height: 1.7; }
.post-body .post-lede { font-size: 22px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.post-body ul { padding-left: 22px; }
.post-body .modes { list-style: none; padding: 0; margin: 24px 0; }
.post-body .modes li { font-size: 20px; margin: 6px 0; }
.post-body .modes span { font-weight: 800; font-family: var(--display); }
.post-source { font-size: 15px !important; color: var(--ink-2); }
.post-cta { margin-top: 48px; padding: 28px; background: var(--night); color: var(--night-ink); border-radius: 4px; }
.post-cta h2 { color: #fff; margin: 0 0 8px; font: 800 26px/1.2 var(--display); }
.post-cta p { color: var(--night-ink-2); margin: 0 0 18px; }
.posts { display: grid; gap: 20px; grid-template-columns: minmax(0,1fr); }
@media (min-width: 860px) { .posts { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.post-card { display: block; padding: 24px; background: var(--paper); border: 1px solid #d3dbe6; border-radius: 4px; color: var(--ink); text-decoration: none; }
a.post-card:hover { border-color: var(--cobalt); box-shadow: 0 12px 28px -18px rgba(13,27,46,.35); }
.post-card h2 { font: 700 21px/1.3 var(--body); margin: 6px 0 10px; }
.post-card p { color: var(--ink-2); margin: 0 0 12px; }
.post-card-meta { font-size: 13px !important; font-weight: 600; color: var(--cobalt) !important; margin: 0 !important; }
.post-card-more { font-weight: 600; color: var(--cobalt); }
.post-card.upcoming { opacity: .7; }
.post-cta .btn { background: #fff; border-color: #fff; color: var(--ink) !important; }
.post-cta .btn:hover { background: var(--sun); border-color: var(--sun); }

/* ---------- Motion (only when motion.js enables it) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes glow { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 4%) scale(1.08); } 100% { transform: translate(0, 0) scale(1); } }
.motion .hero h1 span, .motion .page-hero h1 span { opacity: 0; animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.motion .hero h1 span:nth-child(2) { animation-delay: .15s; }
.motion .hero h1 span:nth-child(3) { animation-delay: .3s; }
.motion .hero .since, .motion .hero .hero-sub, .motion .hero .hero-promise, .motion .hero .hero-actions { opacity: 0; animation: rise .7s ease-out forwards; animation-delay: .5s; }
.motion .hero .hero-actions { animation-delay: .65s; }
.motion .hero .ledger { opacity: 0; animation: slide-in .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: .45s; }
.motion .ledger tbody tr { opacity: 0; animation: rise .5s ease-out forwards; }
.motion .ledger tbody tr:nth-child(1) { animation-delay: .7s; } .motion .ledger tbody tr:nth-child(2) { animation-delay: .78s; }
.motion .ledger tbody tr:nth-child(3) { animation-delay: .86s; } .motion .ledger tbody tr:nth-child(4) { animation-delay: .94s; }
.motion .ledger tbody tr:nth-child(5) { animation-delay: 1.02s; } .motion .ledger tbody tr:nth-child(6) { animation-delay: 1.1s; }
.motion .ledger tbody tr:nth-child(7) { animation-delay: 1.18s; } .motion .ledger tbody tr:nth-child(8) { animation-delay: 1.26s; }
.motion .ledger tbody tr:nth-child(9) { animation-delay: 1.34s; }
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero::before { content: ""; position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; right: -18vw; top: -30vw;
  background: radial-gradient(closest-side, rgba(31, 90, 166, .16), rgba(31, 90, 166, 0)); pointer-events: none; }
.motion .hero::before { animation: glow 18s ease-in-out infinite; }
.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2,.7,.2,1); }
.motion .reveal.in { opacity: 1; transform: none; }
.shot img { transform: translateY(var(--py, 0)) scale(var(--sc, 1)); transition: transform .35s ease-out; will-change: transform; }
.shot-link:hover .shot img { --sc: 1.04; transform: translateY(var(--py, 0)) scale(var(--sc)); }
.tile { transition: transform .3s ease, box-shadow .3s ease; }
.tile:hover { transform: translateY(-4px); }
.badge { transition: transform .3s ease, box-shadow .3s ease; }
.badge:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -18px rgba(13,27,46,.45); }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none !important; } .tile:hover, .badge:hover { transform: none; } }

/* AI section */
.ai-grid { display: grid; gap: 20px; grid-template-columns: minmax(0,1fr); margin-top: 32px; }
@media (min-width: 760px) { .ai-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .ai-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.ai-card { padding: 24px; border: 1px solid #d3dbe6; border-radius: 4px; background: linear-gradient(180deg, #fff 0%, #f5f8fc 100%); border-top: 3px solid var(--modern); }
.ai-card h3 { font: 700 19px/1.3 var(--body); margin: 0 0 8px; }
.ai-card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.ai-how { margin-top: 36px; padding: 28px; background: var(--paper); border-radius: 4px; border: 1px solid var(--line); }
.ai-how h3 { font: 700 20px/1.3 var(--body); margin: 0 0 12px; }
.ai-how ul { margin: 0; padding-left: 20px; }
.ai-how li { margin: 8px 0; color: var(--ink-2); }
.ai-how li strong { color: var(--ink); }

/* ---------- Hero case study showcase ---------- */
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; } }
.hero h1 { font-size: clamp(40px, 6.2vw, 80px); }
.showcase { position: relative; background: var(--panel); border: 1px solid #d3dbe6; border-radius: 8px; overflow: hidden;
  box-shadow: 0 28px 60px -28px rgba(13, 27, 46, .45); }
.sc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.sc-head h2 { font: 600 14px/1.3 var(--body); color: var(--ink-2); margin: 0; }
.sc-head a { font-size: 14px; font-weight: 600; text-decoration: none; }
.sc-slides { display: grid; }
.sc-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.sc-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.sc-media { position: relative; display: grid; place-items: center; height: 330px; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, rgba(255,255,255,.55), rgba(255,255,255,0) 55%), linear-gradient(135deg, var(--t1), var(--t2)); }
.sc-media::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -160px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); pointer-events: none; }
.sc-float { display: grid; place-items: center; height: 100%; width: 100%; }
.sc-media img { max-height: 86%; max-width: 88%; width: auto; height: auto; object-fit: contain; position: relative; z-index: 1;
  filter: drop-shadow(0 18px 26px rgba(13, 27, 46, .30)); }
.sc-info { padding: 18px 22px 6px; }
.sc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
.sc-offer { font-weight: 800; font-family: var(--display); font-size: 13px; }
.sc-live { font-weight: 600; color: #0b6b2f; background: #e5f4e4; padding: 3px 8px; border-radius: 2px; }
.sc-info h3 { font: 800 28px/1.1 var(--display); margin: 0 0 8px; }
.sc-info h3 a { color: var(--ink); text-decoration: none; }
.sc-info h3 a:hover { color: var(--cobalt); }
.sc-desc { margin: 0 0 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.sc-foot { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.sc-hours { margin: 0; font-size: 14px; color: var(--ink-2); }
.sc-hours b { font: 800 26px/1 var(--display); color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
.sc-hours b.sc-plat { font-size: 18px; }
.sc-link { font-size: 14px; font-weight: 600; }
.sc-controls { display: flex; align-items: center; gap: 10px; padding: 12px 22px 4px; }
.sc-controls[hidden] { display: none; }
.sc-segs { display: flex; gap: 6px; flex: 1; }
.sc-seg { flex: 1; padding: 10px 0; background: none; border: 0; cursor: pointer; }
.sc-seg .bar { display: block; height: 4px; border-radius: 2px; background: #d6deea; overflow: hidden; }
.sc-seg .fill { display: block; height: 100%; width: 0; background: var(--cobalt); }
.sc-seg.done .fill { width: 100%; background: #9db4d6; }
.sc-seg.is-active .fill { animation: sc-fill 6.5s linear forwards; }
.showcase.paused .sc-seg.is-active .fill { animation-play-state: paused; }
.showcase.stopped .sc-seg.is-active .fill { animation: none; width: 100%; }
@keyframes sc-fill { from { width: 0; } to { width: 100%; } }
.sc-btn { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d3dbe6; border-radius: 50%;
  background: #fff; color: var(--ink); cursor: pointer; }
.sc-btn:hover { border-color: var(--cobalt); color: var(--cobalt); }
.sc-pause .i-play { display: none; }
.sc-pause:not(.is-playing) .i-pause { display: none; }
.sc-pause:not(.is-playing) .i-play { display: block; }
.sc-help { margin: 0; padding: 2px 22px 14px; font-size: 12.5px; color: var(--ink-2); }
/* Entrance of each project */
@keyframes sc-img-in { from { opacity: 0; transform: translateY(28px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes sc-text-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sc-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.showcase.js .sc-slide.is-active .sc-float { animation: sc-drift 6s ease-in-out infinite .9s; }
.showcase.js .sc-slide.is-active .sc-media img { animation: sc-img-in .9s cubic-bezier(.2,.7,.2,1) both; }
.showcase.js .sc-slide.is-active .sc-info > * { animation: sc-text-in .55s cubic-bezier(.2,.7,.2,1) both; }
.showcase.js .sc-slide.is-active .sc-info > :nth-child(2) { animation-delay: .08s; }
.showcase.js .sc-slide.is-active .sc-info > :nth-child(3) { animation-delay: .16s; }
.showcase.js .sc-slide.is-active .sc-info > :nth-child(4) { animation-delay: .24s; }
.motion .hero .showcase { opacity: 0; animation: slide-in .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: .45s; }
@media (max-width: 560px) {
  .sc-media { height: 250px; }
  .sc-info h3 { font-size: 24px; }
  .sc-head, .sc-info, .sc-controls { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-slide, .sc-slide.is-active { transition: none; }
  .showcase .sc-slide.is-active .sc-float, .showcase .sc-slide.is-active .sc-media img, .showcase .sc-slide.is-active .sc-info > * { animation: none !important; }
  .sc-seg.is-active .fill { animation: none; width: 100%; }
}
html[lang="uk"] .hero h1 { font-size: clamp(32px, 4.9vw, 66px); }
section.showcase { padding: 0; }
/* Hero layout: headline, then projects, then intro on phones; projects beside both on desktop */
.hero-grid { grid-template-areas: "head" "show" "text"; row-gap: 28px; }
.hero-head { grid-area: head; }
.hero-text { grid-area: text; }
.hero .showcase { grid-area: show; }
.hero-text .hero-sub { margin-top: 0; }
@media (min-width: 980px) {
  .hero-grid { grid-template-areas: "head show" "text show"; grid-template-rows: auto 1fr; column-gap: 48px; row-gap: 0; align-items: start; }
  .hero-head { align-self: end; }
  .hero-text .hero-sub { margin-top: 28px; }
  .hero .showcase { align-self: center; }
}
.sc-head a { white-space: nowrap; }
/* Real-font sizing: "Modernize it." must fit on one line */
.hero h1 { font-size: clamp(36px, 10.5vw, 64px); }
@media (min-width: 980px) { .hero h1 { font-size: clamp(48px, 5.4vw, 72px); } }
html[lang="uk"] .hero h1 { font-size: clamp(32px, 9vw, 56px); }
@media (min-width: 980px) { html[lang="uk"] .hero h1 { font-size: clamp(42px, 4.7vw, 64px); } }
.sc-media img { max-height: 280px; }
@media (max-width: 560px) { .sc-media img { max-height: 212px; } }

/* Tighter gap between the menu bar and the hero content */
.hero { padding: 24px 0 56px; }
@media (min-width: 980px) {
  .hero { padding: 36px 0 64px; }
  .hero-head { align-self: start; }
  .hero .showcase { align-self: start; }
}
.hero .since { margin-top: 0; }

/* Pricing: new builds and work on existing products */
.prices-sub { font: 700 20px/1.3 var(--display); margin: 40px 0 0; }
.prices-sub + .prices { margin-top: 16px; }
.prices-note { color: var(--ink-2); max-width: 70ch; margin: 8px 0 0; }
.prices-note + .prices { margin-top: 20px; }

/* How we price: cost factors */
.factors { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .factors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .factors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.factors li { position: relative; padding-left: 22px; color: var(--ink-2); }
.factors li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--modern); }
.pricing-cta { margin-top: 32px; }
@media (min-width: 860px) { .prices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Walk of fame: scrolling strip of awards from the original site */
.wof { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.wof-track { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wof-list { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0 40px 0 0; flex-shrink: 0; animation: wof-scroll 160s linear infinite; }
.wof-list li { flex-shrink: 0; }
.wof-list img { display: block; height: 76px; width: auto; }
.wof-track:hover .wof-list, .wof-track:focus-within .wof-list { animation-play-state: paused; }
@keyframes wof-scroll { to { transform: translateX(-100%); } }
@media (max-width: 560px) { .wof-list { gap: 28px; padding-right: 28px; } .wof-list img { height: 60px; } }
@media (prefers-reduced-motion: reduce) {
  .wof-track { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-bottom: 8px; }
  .wof-list { animation: none; }
  .wof-list[aria-hidden="true"] { display: none; }
}

/* Quote button beside the menu on smaller screens */
.head-cta { display: none; }
@media (max-width: 1099px) {
  .site-head .wrap { justify-content: flex-start; gap: 12px; }
  .head-cta { display: inline-flex; margin-left: auto; padding: 9px 14px; font-size: 14px; }
}
.head-cta { white-space: nowrap; }
@media (max-width: 400px) {
  .menu-toggle .mt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle { padding: 11px 12px; }
}
.proof > .wrap > .wof:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Project scope instead of team hours */
.sc-scope { margin: 0; font: 700 13px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); }
@media (min-width: 1100px) { .tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fast { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .fast { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.fast li { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--modern); }
.fast h4 { font: 700 17px/1.3 var(--body); margin: 0 0 4px; }
.fast p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (min-width: 640px) { .fast li.wide { grid-column: 1 / -1; } }
