/* © 2026. Borys Liashchenko · AB1 Engineering LLC · AB1 Software · Powered by Nexus. */

:root {
  color-scheme: light;
  --canvas: #f5f7fa;
  --slate: #354358;
  --body: #374c67;
  --ocean: #526e9e;
  --ocean-deep: #3b5e94;
  --ice: #dde7f2;
  --card: #edf4fa;
  --plum: #805e84;
  --gold: #baa06c;
  --line: #d3deeb;
  --white: #fff;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; background: var(--canvas); color: var(--body); }
body.dialog-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--slate); }
h1, h2 { letter-spacing: -.045em; }
h2 { font-size: clamp(30px, 3.05vw, 44px); line-height: 1.15; font-weight: 750; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.035em; }
p { font-size: 16px; line-height: 1.55; }
.shell { width: min(1376px, calc(100% - 88px)); margin-inline: auto; }
.section-pad { padding: 48px 0; }
.plum { color: var(--plum); }
.accent-line { display: block; width: 65px; height: 4px; background: var(--gold); margin-bottom: 16px; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .17em; line-height: 1.5; }
.icon { width: 44px; height: 44px; flex: 0 0 auto; color: var(--ocean-deep); stroke-width: 1.5; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 100; padding: 12px; background: var(--white); }
.skip-link:focus { top: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  padding: 15px 23px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--ocean);
  color: var(--white);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.button svg { width: 23px; height: 23px; }
.button:hover { background: var(--ocean-deep); transform: translateY(-2px); box-shadow: 0 7px 20px #35435816; }
.button-light { background: var(--white); color: var(--ocean-deep); }
.button-light:hover { background: var(--card); }

.site-header { position: sticky; top: 0; z-index: 20; background: #ffffffed; border-bottom: 1px solid #e4eaf1; backdrop-filter: blur(16px); }
.header-inner { min-height: 94px; display: flex; align-items: center; gap: 43px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 88px; height: 69px; object-fit: contain; }
.brand-divider { height: 29px; width: 3px; background: var(--gold); }
.primary-nav { display: flex; align-items: center; gap: 39px; flex: 1; }
.primary-nav a { text-decoration: none; font-size: 15px; font-weight: 650; color: var(--slate); padding: 12px 0; position: relative; }
.primary-nav a::after { content: ""; position: absolute; bottom: 4px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width .2s; }
.primary-nav a:hover::after, .primary-nav a[aria-current="location"]::after { width: 100%; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 580px; isolation: isolate; overflow: hidden; background: var(--canvas); }
.hero-photograph {
  position: absolute;
  z-index: -2;
  top: 0;
  right: 0;
  bottom: 0;
  width: 73%;
  background: url("assets/hero-factory-photo.png") center center / cover no-repeat;
  /* Fade the photographic layer into the actual page background. There is
     no clip-path or diagonal crop, including at responsive breakpoints. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #0004 15%, #000d 37%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #0004 15%, #000d 37%, #000 55%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 75px; background: linear-gradient(transparent, var(--canvas)); z-index: -1; pointer-events: none; }
.hero-inner { padding-top: 62px; padding-bottom: 76px; }
.hero-copy { width: min(550px, 48%); }
.hero .eyebrow { margin-bottom: 17px; color: var(--ocean); }
.hero h1 { font-size: clamp(46px, 4.7vw, 70px); line-height: 1.02; font-weight: 780; }
.hero .accent-line { margin-top: 26px; margin-bottom: 19px; }
.hero-description { max-width: 395px; font-size: 20px; line-height: 1.4; margin-bottom: 27px; }
.hero-scroll { position: absolute; bottom: 17px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 15px; font-size: 10px; text-decoration: none; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ocean); }
.hero-scroll span { font-size: 19px; }

.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.solution-card { display: flex; gap: 24px; padding: 27px 24px; border-radius: 11px; background: linear-gradient(130deg, var(--card), #e1edf7); }
.solution-card h3 { margin-bottom: 10px; color: var(--ocean-deep); }
.solution-card p { font-size: 15px; line-height: 1.5; }
.expertise { background: linear-gradient(110deg, #d8e4f0, #e5eef7); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-heading > p { font-size: 13px; color: #63738b; }
.expertise h2 { color: var(--ocean); }
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.expertise-card { position: relative; min-height: 248px; padding: 26px 24px 34px; border: 1px solid #fff8; border-radius: 10px; background: #f6faffb8; transition: background .2s, transform .2s; }
.expertise-card:hover { transform: translateY(-5px); background: #fff; }
.expertise-card .icon { margin-bottom: 18px; }
.expertise-card h3 { color: var(--ocean-deep); margin-bottom: 12px; max-width: 240px; }
.expertise-card p { font-size: 15px; }
.card-index { position: absolute; right: 18px; top: 21px; color: #9eafc2; font-size: 11px; letter-spacing: .1em; }

.projects { padding-bottom: 15px; }
.project-disclaimer { text-align: right; font-size: 11px !important; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card { display: block; padding: 0; border: 0; overflow: hidden; background: var(--card); border-radius: 9px; text-align: left; color: var(--body); box-shadow: 0 0 0 1px #d7e2ef4d; }
.project-image { display: block; overflow: hidden; }
.project-image img { width: 100%; aspect-ratio: 3.2; height: auto; object-fit: cover; transition: transform .6s; }
.project-card:hover .project-image img { transform: scale(1.045); }
.project-body { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 24px; }
.project-body strong { display: block; font-size: 20px; color: var(--ocean-deep); letter-spacing: -.03em; margin-bottom: 7px; }
.project-description { display: block; font-size: 14px; line-height: 1.45; }
.project-arrow { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; background: var(--ocean); color: white; border-radius: 5px; transition: transform .2s; }
.project-arrow svg { width: 24px; height: 24px; }
.project-card:hover .project-arrow { transform: translateX(3px); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 29px; margin: 31px 0 0; padding: 0; list-style: none; }
.process-grid li { display: flex; gap: 18px; position: relative; }
.process-grid li:not(:last-child)::after { content: "→"; position: absolute; right: -19px; top: 27px; color: var(--gold); font-size: 24px; }
.process-icon { display: grid; place-items: center; background: var(--ice); border-radius: 50%; width: 68px; height: 68px; flex: 0 0 auto; }
.process-icon .icon { width: 36px; height: 36px; }
.step-number { font-size: 10px; color: #75869b; letter-spacing: .09em; }
.process-grid h3 { font-size: 20px; margin: 4px 0 8px; }
.process-grid p { font-size: 14px; line-height: 1.45; }
.about-strip { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 27px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; scroll-margin-top: 120px; }
.about-strip h3 { color: var(--ocean); font-size: 21px; }
.about-strip p { max-width: 740px; font-size: 15px; }

.contact { background: linear-gradient(110deg, #4d6e9f, #6687b5); color: var(--white); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 43px; }
.contact h2 { color: white; font-size: clamp(31px, 3.4vw, 47px); line-height: 1.15; }
.contact .eyebrow { color: #e5dbbe; margin-bottom: 13px; }
.contact-inner > div { border-left: 3px solid #d1b881; padding-left: 23px; }
.contact p:not(.eyebrow) { margin-top: 15px; color: #edf3fc; }
.site-footer { display: flex; align-items: center; gap: 25px; min-height: 83px; font-size: 12px; }
.site-footer a { text-decoration: none; }
.footer-brand { font-weight: 750; font-size: 15px; color: var(--slate); }
.site-footer p { font-size: 12px; }
.site-footer > a:nth-of-type(2) { margin-left: auto; }
.site-footer > span { color: #6b7b8f; }

dialog { border: 1px solid #cdd9e7; border-radius: 15px; padding: 0; background: var(--canvas); color: var(--body); max-width: min(720px, calc(100% - 32px)); width: 100%; max-height: 90dvh; box-shadow: 0 25px 90px #15294444; }
dialog::backdrop { background: #20334c80; backdrop-filter: blur(6px); }
.dialog-close { position: absolute; z-index: 1; top: 12px; right: 12px; background: #fffffff2; border: 1px solid var(--line); color: var(--slate); width: 38px; height: 38px; border-radius: 50%; font-size: 27px; line-height: 1; }
.dialog-image { width: 100%; height: 220px; object-fit: cover; }
.dialog-content { padding: 35px; }
.dialog-content h2 { margin-top: 10px; font-size: 33px; margin-bottom: 17px; }
.dialog-content h3 { margin-top: 24px; margin-bottom: 10px; }
.dialog-content ul { padding-left: 20px; line-height: 1.7; font-size: 15px; }
.dialog-note, .form-note { font-size: 12px; color: #697a91; margin: 22px 0; }
.contact-dialog { max-width: min(620px, calc(100% - 32px)); }
form { margin-top: 24px; }
label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 17px; }
input, textarea { width: 100%; display: block; margin-top: 7px; border: 1px solid #c9d6e5; border-radius: 6px; padding: 12px; background: white; color: var(--slate); font-size: 15px; }
input:focus, textarea:focus { outline: 2px solid var(--ocean); outline-offset: 2px; }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { margin-top: 15px; font-size: 13px; }

@media (min-width: 1600px) {
  .hero { min-height: 650px; }
  .hero-inner { padding-top: 88px; }
  .hero h1 { font-size: 78px; }
}

@media (max-width: 1100px) {
  .shell { width: calc(100% - 56px); }
  .header-inner { gap: 27px; min-height: 83px; }
  .brand img { width: 77px; height: 61px; }
  .primary-nav { gap: 26px; }
  .header-cta { font-size: 13px; padding: 12px 16px; gap: 12px; }
  .hero { min-height: 520px; }
  .hero-copy { width: 49%; }
  .hero h1 { font-size: 51px; }
  .hero-description { font-size: 18px; }
  .solution-card { gap: 15px; padding: 22px 19px; }
  .solution-card .icon { width: 35px; height: 35px; }
  h3 { font-size: 18px; }
  .expertise-grid { gap: 14px; }
  .expertise-card { padding: 24px 19px; }
  .process-grid { gap: 22px; }
  .process-grid li { gap: 11px; }
  .process-icon { width: 51px; height: 51px; }
  .process-icon .icon { width: 30px; height: 30px; }
  .process-grid li:not(:last-child)::after { right: -16px; }
  .site-footer { flex-wrap: wrap; gap: 15px 24px; padding-block: 20px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .shell { width: calc(100% - 36px); }
  .section-pad { padding-block: 35px; }
  .header-inner { min-height: 76px; gap: 0; }
  .brand img { width: 68px; height: 55px; }
  .brand-divider, .header-cta { display: none; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; margin-left: auto; width: 45px; height: 43px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--slate); }
  .menu-toggle > span:not(.sr-only) { width: 19px; height: 2px; background: currentColor; }
  .primary-nav { position: absolute; top: 76px; left: 0; right: 0; padding: 19px 24px; background: #fffffffa; border-bottom: 1px solid var(--line); display: none; gap: 10px; }
  .primary-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .primary-nav a { font-size: 17px; }
  .hero { min-height: 710px; }
  .hero-inner { padding-top: 33px; padding-bottom: 0; }
  .hero-copy { width: 100%; max-width: 540px; }
  .hero h1 { font-size: clamp(43px, 7.5vw, 57px); }
  .hero .eyebrow { font-size: 10px; margin-bottom: 13px; }
  .hero-description { max-width: 380px; font-size: 18px; }
  .hero .accent-line { margin-top: 22px; }
  .hero-photograph { width: 100%; top: 335px; background-position: center 45%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000b 28%, #000 48%); mask-image: linear-gradient(180deg, transparent 0%, #000b 28%, #000 48%); }
  .hero-scroll { display: none; }
  .hero::after { height: 40px; }
  .solution-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 23px; }
  .solution-card { padding: 24px; gap: 22px; }
  .solution-card .icon { width: 40px; height: 40px; }
  .solution-card p { max-width: 440px; }
  .section-heading { align-items: start; gap: 14px; }
  .section-heading > p:not(.project-disclaimer) { display: none; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .expertise-card { min-height: 235px; padding: 23px 18px; }
  .expertise-card h3 { font-size: 18px; }
  .expertise-card p { font-size: 14px; }
  .card-index { right: 13px; top: 18px; }
  .project-grid { grid-template-columns: 1fr; gap: 23px; }
  .project-body { padding: 20px; }
  .project-body strong { font-size: 20px; }
  .project-disclaimer { max-width: 155px; padding-top: 8px; font-size: 10px !important; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
  .process-grid li { gap: 13px; }
  .process-grid li::after { display: none; }
  .process-grid h3 { font-size: 18px; }
  .about-strip { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
  .contact-inner { align-items: start; flex-direction: column; gap: 25px; padding-block: 35px; }
  .contact-inner > div { padding-left: 18px; }
  .contact .button { margin-left: 21px; }
  .site-footer { gap: 13px; display: grid; grid-template-columns: 1fr; }
  .site-footer > a:nth-of-type(2) { margin-left: 0; }
  .dialog-content { padding: 28px 22px; }
  .dialog-content h2 { font-size: 28px; }
  .dialog-image { height: 160px; }
}

@media (max-width: 380px) {
  .hero { min-height: 705px; }
  .hero h1 { font-size: 40px; }
  .expertise-grid, .process-grid { grid-template-columns: 1fr; }
  .expertise-card { min-height: auto; }
  .expertise-card p { max-width: 270px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* © 2026. Borys Liashchenko · AB1 Engineering LLC · AB1 Software · Powered by Nexus. */
