:root {
  --ink: #231f20;
  --steel: #1e2124;
  --steel-2: #2b2f33;
  --paper: #f6f7f8;
  --paper-2: #eceef0;
  --gray: #808285;
  --line: #d8dce0;
  --muted: #5d636a;
  --blue: #0095da;        /* logo blue, decorative + on dark */
  --blue-ink: #0072ad;    /* AA-contrast blue for text and buttons on light */
  --radius: 4px;
  --wrap: 1180px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

.eyebrow {
  font: 600 .82rem/1 var(--body);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
/* Ruler ticks, taken from the logo */
.eyebrow::before, .stats::before {
  content: "";
  background:
    repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 30px) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 6px) 0 100% / 100% 50% no-repeat;
}
.eyebrow::before { width: 50px; height: 12px; color: var(--blue); }

/* Logo (symbol defined once in index.html, colours set per placement) */
.logo { display: block; height: 100%; width: auto; overflow: visible; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-ink); color: #fff;
  font: 600 1rem/1 var(--body);
  padding: 15px 24px; border: 2px solid var(--blue-ink); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: #005f91; border-color: #005f91; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-small { padding: 10px 16px; font-size: .92rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: block; height: 54px; text-decoration: none; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: #4a4f55; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--ink); border-bottom-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 .8rem/1 var(--body); padding: 8px 10px; cursor: pointer; letter-spacing: .06em; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,24,27,.9) 0%, rgba(21,24,27,.6) 60%, rgba(21,24,27,.35) 100%); }
.hero > :not(.hero-img) { position: relative; z-index: 1; }
.hero-inner { padding: clamp(80px, 13vw, 150px) 24px 64px; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); max-width: 21ch; margin-bottom: 22px; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; color: #dfe1e3; margin-bottom: 34px; }
.hero .eyebrow { color: #c9ccd0; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative; margin: 0; border-top: 1px solid rgba(255,255,255,.3);
}
.stats::before { position: absolute; left: 0; right: 0; top: 0; height: 14px; color: rgba(255,255,255,.3); }
.stats > div { padding: 26px 20px 30px 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.15); }
.stats dt { font-size: .85rem; color: #aeb3b8; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.stats dd { margin: 0; font: 700 clamp(1.6rem, 3vw, 2.3rem)/1 var(--head); color: var(--blue); }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--steel); color: #fff; }
.section-dark .eyebrow, .section-dark .muted { color: #aeb3b8; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-lead { font-size: 1.12rem; color: var(--muted); }
.section-dark .section-lead { color: #c9ccd0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.service { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.service:nth-child(1), .service:nth-child(2) { grid-column: span 3; }
.service-media { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-2); }
.service-body { padding: 24px 26px 28px; }
.service-body p:last-child { margin-bottom: 0; }
.spec { display: inline-block; font: 600 .9rem/1 var(--head); letter-spacing: .06em; background: var(--ink); color: var(--blue); padding: 6px 10px; border-radius: 2px; margin-bottom: 14px; }
.note { font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { padding: 28px 28px 8px 0; border-top: 3px solid var(--blue); }
.steps li + li { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.12); }
.step-n { display: flex; align-items: center; gap: 10px; font: 700 1rem/1 var(--head); color: var(--blue); margin-bottom: 18px; letter-spacing: .08em; }
/* Quarter circle from the logo */
.step-n::before { content: ""; width: 18px; height: 18px; background: #fff; border-radius: 0 0 0 100%; }
.steps p { color: #c9ccd0; font-size: .98rem; }

/* References */
.clients { --cols: 7; list-style: none; padding: 0; margin: 0 0 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.clients li { flex: 0 0 calc((100% - (var(--cols) - 1) * 10px) / var(--cols)); display: grid; place-items: center; height: 92px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.clients img { max-width: 100%; max-height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.clients li:hover img { filter: none; opacity: 1; }
.clients img.emblem { max-height: 60px; }
/* Unior's logo is white-on-transparent; darken it to match the rest */
.clients img.on-dark, .clients li:hover img.on-dark { filter: brightness(0); opacity: .6; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button {
  font: 500 .95rem/1 var(--body); padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
}
.filters button .count { color: var(--muted); margin-left: 6px; font-size: .85em; }
.filters button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters button[aria-selected="true"] .count { color: var(--blue); }
.ref-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; max-height: 560px; overflow: auto; }
.ref-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.ref-table th { position: sticky; top: 0; background: var(--ink); color: #fff; text-align: left; font: 600 .82rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em; padding: 14px 16px; }
.ref-table td { padding: 12px 16px; border-top: 1px solid var(--paper-2); vertical-align: top; }
.ref-table tbody tr:hover { background: #fbfaf7; }
.ref-table td:nth-child(2) { font-family: var(--head); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.ref-table td:nth-child(3) { font-weight: 600; }
.ref-table td:nth-child(4) { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery button { padding: 0; border: 0; background: var(--line); cursor: zoom-in; position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: .85rem; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .2s; }
.gallery button:hover .cap, .gallery button:focus-visible .cap { opacity: 1; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 12, 14, .94); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-height: 84vh; max-width: 100%; object-fit: contain; }
.lightbox figcaption { color: #dfe1e3; font-size: .95rem; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; height: 64px; }
.lb-close { position: absolute; top: 12px; right: 18px; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.about p { font-size: 1.08rem; max-width: 60ch; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.values li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 22px 24px; }
.values h3 { margin-bottom: 6px; }
.values p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.contact-card { background: var(--steel-2); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.contact-card h3 { margin-bottom: 0; font-size: 1.3rem; }
.contact-card p { margin-bottom: 10px; font-size: .92rem; }
.contact-card a { color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; overflow-wrap: anywhere; }
.contact-card a:hover, .office a:hover { color: var(--blue); }
.office { font-style: normal; line-height: 1.8; color: #dfe1e3; }
.office a { color: #fff; }
.inquiry { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; }
.inquiry h3 { font-size: 1.7rem; margin: 0; }
.inquiry label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.inquiry input, .inquiry select, .inquiry textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); width: 100%;
}
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.inquiry .btn { justify-self: start; }
.form-note { font-size: .85rem; margin: 0; }

.site-footer { background: var(--ink); color: #aeb3b8; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.footer-logo { height: 46px; --logo-steel: #b9bbbd; --logo-line: #fff; --logo-quarter: #fff; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Responsive */
@media (max-width: 1020px) {
  .nav { gap: 18px; }
  .header-actions .btn-small { display: none; }
  .services { grid-template-columns: 1fr 1fr; }
  .service, .service:nth-child(1), .service:nth-child(2) { grid-column: span 1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .clients { --cols: 4; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--paper-2); }
  .header-actions { margin-left: auto; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero-inner { padding-left: 16px; padding-right: 16px; }
  .hero::after { background: rgba(21,24,27,.7); }
  .brand { height: 46px; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; }
  .contact-cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 6px; }
  .clients { --cols: 2; }
  .clients li { height: 76px; }
  .gallery .cap { display: none; }
  .ref-table thead { display: none; }
  .ref-table, .ref-table tbody, .ref-table tr, .ref-table td { display: block; }
  .ref-table tr { padding: 12px 14px; border-top: 1px solid var(--paper-2); }
  .ref-table td { border: 0; padding: 0; white-space: normal !important; }
  .ref-table td:nth-child(1) { font-weight: 600; }
  .ref-table td:nth-child(2) { display: inline; font-size: .95rem; }
  .ref-table td:nth-child(3), .ref-table td:nth-child(4) { display: inline; font-weight: 400; }
  .ref-table td:nth-child(2)::after, .ref-table td:nth-child(3)::after { content: " · "; color: var(--muted); }
  .ref-table td:empty { display: none; }
  .inquiry { padding: 22px; }
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
  .footer-inner { flex-direction: column; }
  /* Comfortable tap targets */
  .lang button { padding: 13px 12px; }
  .contact-card { gap: 0; }
  .contact-card a { padding: 10px 0; }
  .office a, .site-footer a { display: inline-block; padding: 10px 0; }
  .ref-table-wrap { max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
