/* Visual eXcellence: one-page site */

@font-face { font-family: "Raleway"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/raleway-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/raleway-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/raleway-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/raleway-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #000;
  --bg-2: #1b1b1e;
  --bg-3: #2f2e2e;
  --text: #fff;
  --muted: #a0a09f;
  --accent: #116dff;
  --accent-2: #4b8dff;
  --red: #e21c21;
  --light-bg: #f4f4f5;
  --light-text: #1b1b1e;
  --header-h: 72px;
  --font: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(0, 0, 0, .94); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.header-inner { height: 100%; width: min(1240px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .04em; }
.brand img { width: 40px; height: 40px; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; text-transform: uppercase; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: rgba(255, 255, 255, .8); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover, .site-nav a.active { color: #fff; border-bottom-color: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .brand span { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 0; color: #fff; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .25s, background-color .25s; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; } .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: rgba(0, 0, 0, .96); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 20px; }
  .site-nav a { display: block; padding: 14px 4px; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
}

/* Right-side dot navigation */
.dot-nav { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 14px; }
.dot-nav a { position: relative; display: block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); background: rgba(0, 0, 0, .25); box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); transition: background-color .2s, transform .2s; }
.dot-nav a.active { background: #fff; transform: scale(1.15); }
.dot-nav a::after { content: attr(data-label); position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; color: #fff; background: rgba(0, 0, 0, .75); padding: 2px 8px; }
.dot-nav a:hover::after, .dot-nav a:focus-visible::after { opacity: 1; }
@media (max-width: 900px) { .dot-nav { display: none; } }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 24px) 16px 80px;
  background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .75)), url("/img/hero.jpg") center / cover no-repeat;
}
.hero h1 { text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .1em; }
.h1-kicker { font-weight: 600; font-size: clamp(12px, 1.6vw, 15px); letter-spacing: .4em; color: var(--accent-2); margin-bottom: 18px; }
.h1-small { font-weight: 300; font-size: clamp(22px, 4vw, 40px); letter-spacing: .3em; }
.h1-big { font-weight: 800; font-size: clamp(44px, 10vw, 116px); letter-spacing: .04em; line-height: 1; }
.hero-tag { margin: 28px 0 0; font-weight: 600; font-size: clamp(14px, 2vw, 18px); letter-spacing: .35em; text-transform: uppercase; }
.hero-tag span { color: var(--accent-2); margin: 0 .5em; }
.not-found .h1-big { font-size: clamp(36px, 7vw, 72px); }
.not-found-action { margin-top: 32px; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: #fff; opacity: .85; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* "Excellence" in red, as on the original site */
.h1-red { color: var(--red); }

/* Hero title intro: lines rise in one after another, "Excellence" tracks in and glows once.
   Plays once on load. Base styles are the final state, so the global reduced-motion rule
   (animation: none) simply shows the finished title. Transform/opacity/text-shadow only. */
#home { overflow: hidden; } /* keeps the wide letter-spacing at the start from causing sideways scroll */
#home .h1-kicker            { animation: hero-rise .8s cubic-bezier(.2, .7, .2, 1) .1s both; }
#home h1 > :nth-child(2)    { animation: hero-rise .8s cubic-bezier(.2, .7, .2, 1) .35s both; }
#home .h1-red               { animation: hero-track 1.2s cubic-bezier(.2, .7, .2, 1) .55s both, hero-glow 1.6s ease-in-out 1.75s both; }
#home h1 > :nth-child(4)    { animation: hero-rise .8s cubic-bezier(.2, .7, .2, 1) 1.1s both; }
#home h1 > :nth-child(5)    { animation: hero-rise .8s cubic-bezier(.2, .7, .2, 1) 1.3s both; }
#home .hero-tag             { animation: hero-rise .8s cubic-bezier(.2, .7, .2, 1) 1.6s both; }
@keyframes hero-rise  { from { opacity: 0; transform: translateY(.6em); } to { opacity: 1; transform: none; } }
@keyframes hero-track { from { opacity: 0; letter-spacing: .5em; } 40% { opacity: .7; } to { opacity: 1; letter-spacing: .04em; } }
@keyframes hero-glow  { 0%, 100% { text-shadow: 0 0 0 rgba(226, 28, 33, 0); } 50% { text-shadow: 0 0 .3em rgba(226, 28, 33, .7); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-dark { background: var(--bg-2); }
.section-title { text-transform: uppercase; font-weight: 800; font-size: clamp(34px, 5.5vw, 60px); letter-spacing: .03em; margin-bottom: 28px; }
.section-title span { display: block; font-weight: 300; font-size: .55em; letter-spacing: .3em; color: var(--muted); margin-bottom: .2em; }
.section-lede { font-size: 19px; font-weight: 300; margin: 0 0 40px; color: rgba(255, 255, 255, .85); }
.section-lede.narrow { max-width: 820px; }

/* Services */
#services { background: linear-gradient(rgba(27, 27, 30, .9), rgba(27, 27, 30, .96)), url("/img/hero.jpg") center / cover; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.service a {
  display: block; height: 100%; text-decoration: none;
  padding: 28px 24px 32px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .35);
  font-size: 22px; font-weight: 600; line-height: 1.3;
  transition: border-color .2s, transform .2s, background-color .2s;
}
.service a::before { content: ""; display: block; width: 44px; height: 6px; background: var(--accent); margin-bottom: 22px; }
.service a:hover { border-color: var(--accent); background: rgba(17, 109, 255, .08); transform: translateY(-3px); }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }

/* About */
.section-about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-text p { color: rgba(255, 255, 255, .85); font-weight: 300; font-size: 18px; }
.about-photo { margin: 0; position: relative; }
.about-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--accent); z-index: 0; }
.about-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-photo { margin-right: 18px; } }

/* Work */
.work-group { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin: 8px 0 18px; display: flex; align-items: center; gap: 14px; }
.work-group::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .12); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 56px; }
.gallery:last-child { margin-bottom: 0; }
.gallery a { display: block; position: relative; overflow: hidden; background: #000; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.gallery-web img { aspect-ratio: 16 / 9; object-position: top; }
.gallery a::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .25s; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.05); opacity: .9; }
.gallery a:hover::after, .gallery a:focus-visible::after { box-shadow: inset 0 0 0 3px var(--accent); }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery li:first-child img { height: 100%; }
.gallery-web li:first-child { grid-column: auto; grid-row: auto; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery li:first-child { grid-column: span 2; grid-row: auto; }
  .gallery li:last-child:nth-child(even) { grid-column: span 2; } /* no lone tile in the last row */
}

/* Clients */
.section-light { background: var(--light-bg); color: var(--light-text); }
.section-light .section-title span { color: #6b6b70; }
.section-light .section-lede { color: #3a3a3f; }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logos li { background: #fff; display: grid; place-items: center; padding: 22px; aspect-ratio: 3 / 2; border: 1px solid #e4e4e7; }
.logos img { max-height: 90px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(2, 1fr); gap: 10px; } .logos li { padding: 14px; } .logos img { max-height: 64px; } }

/* Facts */
.section-facts { background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .7)), url("/img/facts-bg.jpg") center / cover; text-align: center; }
.section-facts .section-title span { color: rgba(255, 255, 255, .75); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.fact-num { display: block; font-weight: 800; font-size: clamp(44px, 6vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.fact-label { display: block; margin-top: 12px; text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 600; }
.facts li::after { content: ""; display: block; width: 36px; height: 4px; background: var(--accent); margin: 18px auto 0; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); row-gap: 44px; } }

/* Contact */
.contact { text-align: center; }
.contact .section-title { margin-bottom: 18px; }
.contact-place { text-transform: uppercase; letter-spacing: .3em; font-weight: 600; font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; letter-spacing: .04em; border: 2px solid var(--accent);
  transition: background-color .2s, color .2s, border-color .2s;
  max-width: 100%; overflow-wrap: anywhere;
}
.btn:hover { background: #0b58d6; border-color: #0b58d6; }
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, .7); }
.btn-outline:hover { background: #fff; color: var(--bg-2); border-color: #fff; }

/* Footer */
.site-footer { background: #000; padding: 28px 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); }
.site-footer p { margin: 0; }
.footer-nap a { color: var(--muted); text-decoration: none; }
.footer-nap a:hover { color: #fff; }
.site-footer span { margin: 0 .5em; }
.social { color: #fff; display: inline-flex; padding: 6px; border-radius: 50%; transition: color .2s; }
.social:hover { color: var(--accent-2); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.lightbox figcaption { color: #ddd; font-size: 15px; text-align: center; padding: 0 8px; }
.lightbox button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 48px; line-height: 1; width: 64px; height: 64px; font-family: var(--font); }
.lightbox button:hover { color: var(--accent-2); }
.lb-close { position: fixed; top: 12px; right: 12px; font-size: 40px !important; }
@media (max-width: 600px) { .lightbox[open] { grid-template-columns: 40px 1fr 40px; } .lightbox button { width: 40px; font-size: 36px; } }
