:root {
  --red: #991d36;
  --red-bright: #c12748;
  --ink: #11151b;
  --ink-soft: #1b212a;
  --paper: #f4f5f7;
  --white: #ffffff;
  --muted: #65707d;
  --line: rgba(17, 21, 27, .14);
  --title: "IBM Plex Sans", Arial, sans-serif;
  --body: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 128px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 999; top: 12px; left: 12px; padding: 10px 16px; background: var(--white); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: 92px; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(17,21,27,.1); transition: height .25s ease, box-shadow .25s ease; }
.site-header.scrolled { height: 74px; box-shadow: 0 12px 30px rgba(9,12,18,.09); }
.admin-bar .site-header { top: 32px; }
.header-inner { width: min(1320px, calc(100% - 48px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { width: 230px; height: 56px; overflow: hidden; display: flex; align-items: center; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 36px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.main-nav a { position: relative; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--red); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.nav-cta { padding: 12px 20px; color: var(--white); background: var(--red); }
.nav-cta:hover { background: var(--ink); }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 850px; height: 100svh; max-height: 1040px; display: flex; align-items: center; color: var(--white); background: var(--ink); overflow: hidden; }
.hero-media, .hero-shade, .hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: center; transform: scale(1.04); animation: heroIn 1.4s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-shade { background: linear-gradient(90deg, rgba(10,14,20,.96) 0%, rgba(10,14,20,.76) 44%, rgba(10,14,20,.24) 100%), linear-gradient(0deg, rgba(10,14,20,.35), transparent 55%); }
.hero-grid { opacity: .12; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, black, transparent 80%); }
.hero-content { position: relative; z-index: 2; padding-top: 92px; }
.eyebrow, .section-kicker { margin: 0 0 22px; color: var(--red-bright); font-family: var(--title); font-size: .76rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 0; font-family: var(--title); font-size: clamp(4.3rem, 8.2vw, 8.3rem); line-height: .83; letter-spacing: -.065em; text-transform: uppercase; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.72); }
.hero-copy { max-width: 660px; margin: 36px 0 0; color: rgba(255,255,255,.78); font-size: 1.12rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 42px; }
.button { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; border: 1px solid rgba(255,255,255,.3); font-size: .84rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; transition: .2s ease; }
.button-primary { background: var(--red); border-color: var(--red); }
.button-primary:hover { background: var(--red-bright); border-color: var(--red-bright); }
.button-ghost:hover { background: var(--white); color: var(--ink); }
.hero-index { position: absolute; right: 0; bottom: 0; width: 420px; height: 78px; display: flex; align-items: center; gap: 26px; padding: 0 40px; background: var(--white); color: var(--ink); font-family: var(--title); font-size: .77rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero-index span:first-child { color: var(--red); font-size: 1.8rem; }
@keyframes heroIn { from { transform: scale(1.12); opacity: .3; } to { transform: scale(1.04); opacity: 1; } }

.intro { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: start; }
.intro h2, .section-heading h2, .projects h2, .contact h2 { margin: 0; font-family: var(--title); font-size: clamp(2.7rem, 5vw, 5rem); line-height: .98; letter-spacing: -.05em; }
.intro-copy > p:first-child { margin: 36px 0 32px; font-size: 1.22rem; line-height: 1.65; }
.intro-line { width: 100%; height: 1px; background: var(--line); }
.small-copy { color: var(--muted); font-size: .95rem; }

.services { color: var(--white); background: var(--ink); }
.section-kicker.light { color: #e85e79; }
.section-heading { margin-bottom: 72px; }
.service-list { border-top: 1px solid rgba(255,255,255,.16); }
.service-card { display: grid; grid-template-columns: 90px 360px 1fr; gap: 34px; align-items: center; padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.service-number { align-self: start; padding-top: 8px; color: #e85e79; font-family: var(--title); font-size: 1.2rem; font-weight: 600; }
.service-image { height: 230px; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); transition: transform .6s ease, filter .6s ease; }
.service-card:hover .service-image img { transform: scale(1.045); filter: saturate(1); }
.service-body { padding-left: 18px; }
.service-body h3 { margin: 0 0 12px; font-family: var(--title); font-size: clamp(1.65rem, 2.5vw, 2.35rem); line-height: 1.1; letter-spacing: -.03em; }
.service-body p { margin: 0 0 18px; color: rgba(255,255,255,.63); }
.service-body ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.service-body li { padding: 6px 10px; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.76); font-size: .77rem; }

.projects { background: var(--paper); }
.projects-head { display: grid; grid-template-columns: 1fr 370px; gap: 80px; align-items: end; margin-bottom: 60px; }
.projects-head > p { margin: 0 0 5px; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: 1.2fr .8fr; grid-auto-rows: 370px; gap: 18px; }
.project-item { position: relative; margin: 0; overflow: hidden; background: #dadddf; }
.project-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.project-item:hover img { transform: scale(1.035); filter: brightness(.82); }
.project-wide { grid-column: 1 / -1; }
.project-tall { grid-row: span 2; }
.project-item figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; padding: 22px 24px; color: var(--white); background: linear-gradient(transparent, rgba(9,12,16,.75)); font-family: var(--title); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(12px); transition: .3s ease; }
.project-item:hover figcaption { opacity: 1; transform: none; }

.contact { padding-bottom: 0; color: var(--white); background: var(--red); }
.contact-panel { display: grid; grid-template-columns: 1.25fr .75fr; gap: 110px; padding-bottom: 92px; }
.contact h2 { max-width: 760px; font-size: clamp(3.1rem, 5.6vw, 6rem); }
.contact-mail { display: inline-flex; align-items: center; gap: 18px; margin-top: 44px; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.62); font-weight: 700; }
.contact-details { display: grid; gap: 26px; align-content: end; }
.contact-details > div { padding-top: 19px; border-top: 1px solid rgba(255,255,255,.35); }
.contact-details span { display: block; margin-bottom: 7px; color: rgba(255,255,255,.65); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-details a, .contact-details address { font-size: 1rem; font-style: normal; }
.map-wrap { height: 420px; padding: 0; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

.site-footer { color: rgba(255,255,255,.82); background: #0c0f14; }
.footer-main { padding: 72px 0 62px; color: rgba(255,255,255,.82); background: #0c0f14; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .55fr .8fr; gap: 80px; align-items: start; }
.footer-company > p { max-width: 470px; margin: 24px 0 30px; color: rgba(255,255,255,.7); font-size: .92rem; }
.footer-brand { display: block; width: min(300px, 100%); }
.footer-brand img { width: 100%; height: auto; object-fit: contain; }
.footer-kit-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.footer-kit-logos img { width: auto; max-width: 210px; height: 68px; object-fit: contain; object-position: left center; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-column h2 { margin: 0 0 14px; color: var(--red); font-family: var(--title); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-column a { color: rgba(255,255,255,.86); font-size: .92rem; transition: color .2s ease; }
.footer-column a:hover, .footer-column a:focus-visible { color: var(--white); }
.footer-contact address { margin: 0 0 8px; color: rgba(255,255,255,.7); font-size: .88rem; font-style: normal; line-height: 1.75; }
.footer-bottom { color: rgba(255,255,255,.66); background: #0c0f14; }
.footer-bottom-grid { min-height: 104px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.footer-bottom p { margin: 0; font-size: .74rem; }
.footer-bottom p a { color: var(--white); font-weight: 700; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; }
.footer-legal a { color: rgba(255,255,255,.78); font-size: .72rem; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--white); }
.page-company .inner-copy-grid { align-items: center; }
.services.page-services { color: var(--ink); background: var(--white); }
.services.page-services .section-kicker.light, .services.page-services .service-number { color: var(--red); }
.services.page-services .service-list { border-top-color: var(--line); }
.services.page-services .service-card { border-bottom-color: var(--line); }
.services.page-services .service-body p { color: var(--muted); }
.services.page-services .service-body li { color: #47515d; border-color: var(--line); }

.page-company + .inner-section.dark { padding: 80px 0; color: var(--white); background: var(--red); }
.page-company + .inner-section.dark .inner-copy-grid { align-items: center; }
.page-company + .inner-section.dark .inner-copy-grid h2 { font-size: clamp(2.45rem, 3.7vw, 3.7rem); line-height: 1.03; }
.page-company + .inner-section.dark .inner-copy-grid > div:last-child { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.page-company + .inner-section.dark .inner-copy-grid > div:last-child p { margin: 0 0 24px; }
.page-company + .inner-section.dark .section-kicker,
.page-services + .inner-section.white .section-kicker { color: var(--white); }
.page-company + .inner-section.dark .button-primary,
.page-services + .inner-section.white .button-primary { color: var(--white); background: var(--ink); border-color: var(--ink); }
.page-company + .inner-section.dark .button-primary:hover,
.page-services + .inner-section.white .button-primary:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.page-services + .inner-section.white { padding: 80px 0; color: var(--white); background: var(--red); }
.page-services + .inner-section.white .inner-copy-grid { align-items: center; }
.page-services + .inner-section.white .inner-copy-grid h2 { font-size: clamp(2.45rem, 3.7vw, 3.7rem); line-height: 1.03; }
.page-services + .inner-section.white .inner-copy-grid > div:last-child { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.page-services + .inner-section.white .inner-copy-grid > div:last-child p { margin: 0 0 24px; }

body.home .contact > .map-wrap { height: 470px; padding-bottom: 50px; }

.page-contact .contact-form-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: start; }
.page-contact .contact-intro h2 { font-size: clamp(3rem, 4.8vw, 5rem); }
.page-contact .contact-page-details { margin-top: 48px; }
.page-contact .contact-form-panel { padding: 42px; color: var(--ink); background: var(--white); }
.novatec-contact-form { display: grid; gap: 22px; }
.novatec-contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.novatec-contact-form label { display: grid; gap: 8px; color: #343b44; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.novatec-contact-form input:not([type="checkbox"]), .novatec-contact-form textarea { width: 100%; padding: 13px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(17,21,27,.3); border-radius: 0; font: inherit; font-size: .95rem; font-weight: 500; text-transform: none; outline: none; }
.novatec-contact-form textarea { min-height: 130px; resize: vertical; }
.novatec-contact-form input:focus, .novatec-contact-form textarea:focus { border-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.novatec-contact-form .form-consent { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; font-size: .72rem; font-weight: 500; letter-spacing: 0; line-height: 1.5; text-transform: none; }
.novatec-contact-form .form-consent input { margin-top: 4px; accent-color: var(--red); }
.novatec-contact-form .form-consent a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.novatec-contact-form .button { justify-self: start; color: var(--white); border: 0; cursor: pointer; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin: 0; padding: 13px 16px; font-size: .84rem; }
.form-notice.success { color: #155724; background: #d4edda; }
.form-notice.error { color: #721c24; background: #f8d7da; }
.page-contact .contact-map { padding-top: 88px; }
.page-contact .contact-map .map-wrap { width: 100%; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .section { padding: 96px 0; }
  .menu-toggle { position: relative; z-index: 3; width: 44px; height: 44px; padding: 10px; display: grid; align-content: center; gap: 5px; border: 0; background: transparent; }
  .menu-toggle > span:not(.sr-only) { width: 24px; height: 2px; background: var(--ink); transition: .25s ease; }
  .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); }
  .main-nav { position: fixed; inset: 0; padding: 120px 36px 48px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; background: var(--white); font-family: var(--title); font-size: 1.7rem; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .main-nav.open { transform: none; }
  .nav-cta { margin-top: 12px; font-family: var(--body); font-size: .85rem; }
  .hero { min-height: 760px; }
  .hero-index { display: none; }
  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .intro-copy > p:first-child { margin-top: 0; }
  .service-card { grid-template-columns: 60px 300px 1fr; gap: 22px; }
  .service-image { height: 210px; }
  .projects-head { grid-template-columns: 1fr; gap: 24px; }
  .project-grid { grid-auto-rows: 300px; }
  .contact-panel { grid-template-columns: 1fr; gap: 68px; }
  .page-contact .contact-form-layout { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 720px) {
  .wrap, .header-inner { width: min(100% - 32px, 1240px); }
  .site-header { height: 76px; }
  .brand { width: 185px; }
  .hero { min-height: 720px; height: 100svh; }
  .hero-content { padding-top: 76px; }
  .hero h1 { font-size: clamp(3.45rem, 17vw, 5.4rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; width: min(100%, 330px); }
  .button { justify-content: space-between; }
  .section { padding: 76px 0; }
  .intro h2, .section-heading h2, .projects h2 { font-size: 2.8rem; }
  .service-card { grid-template-columns: 42px 1fr; padding: 28px 0 42px; }
  .service-number { grid-row: 1; grid-column: 1; }
  .service-image { grid-row: 1; grid-column: 2; height: 210px; }
  .service-body { grid-row: 2; grid-column: 2; padding: 0; }
  .service-body li { font-size: .7rem; }
  .project-grid { display: block; }
  .project-item { height: 270px; margin-bottom: 14px; }
  .project-item.project-tall { height: 410px; }
  .project-item figcaption { opacity: 1; transform: none; }
  .contact h2 { font-size: 3.2rem; }
  .contact-mail { font-size: .86rem; }
  .map-wrap { width: 100%; height: 360px; }
  .footer-main { padding: 58px 0 46px; }
  .footer-grid { grid-template-columns: 1fr; gap: 46px; }
  .footer-kit-logos { align-items: flex-start; }
  .footer-kit-logos img { max-width: min(210px, 100%); height: 62px; }
  .footer-bottom-grid { padding: 28px 0; grid-template-columns: 1fr; gap: 20px; }
  .footer-legal { justify-content: flex-start; }
  .page-company + .inner-section.dark { padding: 64px 0; }
  .page-company + .inner-section.dark .inner-copy-grid h2 { font-size: 2.5rem; }
  .page-services + .inner-section.white { padding: 64px 0; }
  .page-services + .inner-section.white .inner-copy-grid h2 { font-size: 2.5rem; }
  .page-contact .contact-form-panel { padding: 26px 20px; }
  .novatec-contact-form .form-row { grid-template-columns: 1fr; gap: 22px; }
  .page-contact .contact-map { padding-top: 64px; }
  body.home .contact > .map-wrap { height: 410px; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
