@font-face {
  font-family: Inter;
  src: url("inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #080e20;
  --panel: #0e1830;
  --deeper: #0c1428;
  --ink: #f4f5ff;
  --muted: #b6c0d9;
  --subtle: #a6b1cf;
  --line: #273452;
  --highlight: #d8acff;
  --highlight-strong: #bd67fc;
  --blue: #80acfa;
  --gutter: clamp(18px, 5.1vw, 80px);
  --width: 1296px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 22px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.62 Inter, system-ui, sans-serif;
}
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, address, ul, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid #e1b5fd; outline-offset: 4px; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--width)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 3;
  inset: 12px auto auto 12px;
  padding: 9px 15px;
  background: var(--ink);
  color: var(--page);
  border-radius: 4px;
}
main:focus { outline: none; }

.site-header { border-bottom: 1px solid var(--line); background: #090f22; }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 14px 30px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 77px; height: auto; }
.brand-type { display: grid; gap: 4px; line-height: 1; }
.brand-type strong { font-size: 1.28rem; font-weight: 690; letter-spacing: -.035em; }
.brand-type small { color: var(--muted); font-size: .62rem; font-weight: 580; letter-spacing: .025em; }
.navigation { display: flex; align-items: center; gap: clamp(12px, 2.7vw, 39px); }
.navigation a { padding: 10px 0; font-size: .88rem; font-weight: 590; text-decoration: none; white-space: nowrap; }
.navigation a:hover, .navigation a[aria-current] { color: var(--highlight); }
.navigation a[aria-current] { text-decoration: underline; }
.navigation .nav-contact { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid #6c56a2; border-radius: 5px; }
.navigation .nav-contact:hover { background: #201530; border-color: var(--highlight-strong); }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 68% 16%, #172d57 0%, #101d38 39%, #0a1329 73%);
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(128deg, transparent 44%, #6f51b70d 44.2%, transparent 44.4%, transparent 70%, #bd67fc13 70.2%, transparent 70.4%);
  content: "";
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .99fr);
  align-items: center;
  gap: clamp(24px, 4.4vw, 66px);
  padding-block: clamp(51px, 6.35vw, 98px);
}
.hero-copy { position: relative; z-index: 1; }
.hero h1, .page-lead h1 {
  font-size: clamp(3rem, 5.35vw, 5.25rem);
  font-weight: 720;
  letter-spacing: -.067em;
  line-height: 1.005;
}
.hero h1 span { display: block; }
.hero-copy > p { max-width: 30rem; margin-top: 26px; color: var(--muted); font-size: clamp(1.06rem, 1.39vw, 1.22rem); line-height: 1.63; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .9rem;
  font-weight: 680;
  line-height: 1.25;
  text-decoration: none;
}
.button span { font-size: 1.03em; }
.button-primary { background: #d8adfd; color: #1e1031; }
.button-primary:hover { background: #e7c6ff; }
.button-outline { color: var(--ink); border-color: #6c64a3; }
.button-outline:hover { border-color: var(--highlight-strong); background: #9556d827; }

.hero-shot {
  position: relative;
  width: 100%;
  aspect-ratio: 1.36;
  padding: 1px;
  isolation: isolate;
}
.hero-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(142deg, #475890 6%, #7351bf 45%, #c569ff 86%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
}
.hero-shot picture {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background-color: #172448;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 33px), calc(100% - 33px) 100%, 0 100%);
}
.hero-shot picture::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #080e20ab, transparent 28%);
  content: "";
}
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 50%; }
.hero-shot figcaption { position: absolute; z-index: 1; right: 45px; bottom: 10px; color: #e9eaff; font-size: .7rem; }

.technology { background: #0e1830; border-block: 1px solid var(--line); }
.technology-inner { display: flex; align-items: baseline; gap: 9px 35px; padding-block: 18px; }
.technology p { flex: none; color: var(--subtle); font-size: .82rem; }
.technology ul { display: flex; flex-wrap: wrap; gap: 5px 26px; list-style: none; padding: 0; color: #d9e3fb; font-size: .87rem; font-weight: 630; }

.section { padding-block: clamp(61px, 7.6vw, 107px); }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px 30px; margin-bottom: 26px; }
.section-top h2, .about h2, .contact h2, .case-story h2 {
  font-size: clamp(2.2rem, 4vw, 3.65rem);
  font-weight: 690;
  line-height: 1.06;
  letter-spacing: -.05em;
}
.section-top > p { max-width: 36rem; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { background: var(--deeper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(20px, 2.4vw, 34px); }
.service::before { display: block; content: ""; width: 23px; height: 2px; margin: 0 0 17px; background: #b172ff; }
.service h3, .project-card h3, .case-detail-grid h3 { font-size: clamp(1.1rem, 1.7vw, 1.42rem); font-weight: 660; line-height: 1.24; letter-spacing: -.027em; }
.service p { color: var(--muted); margin-top: 9px; line-height: 1.58; }

.portfolio-feature { background: #0b1328; border-block: 1px solid var(--line); }
.text-link, .breadcrumb {
  color: var(--highlight);
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  width: fit-content;
  font-size: .92rem;
  font-weight: 635;
  text-decoration: underline;
}
.text-link:hover, .breadcrumb:hover { color: #f2dfff; }
.featured-case {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 14px 40px;
  align-items: stretch;
  background: linear-gradient(112deg, #101b35, #142344 76%);
  border: 1px solid #34446c;
  border-top-color: #9a6ad2;
}
.case-intro { padding: clamp(23px, 3.7vw, 48px); padding-right: 0; }
.eyebrow, .project-meta {
  color: var(--highlight);
  font-size: .77rem;
  font-weight: 670;
  line-height: 1.45;
}
.eyebrow { letter-spacing: .045em; }
.case-intro h3 { margin-block: 8px 12px; font-size: clamp(2rem, 4.15vw, 3.6rem); line-height: 1.05; letter-spacing: -.056em; font-weight: 700; }
.case-intro > p:not(.eyebrow) { color: var(--muted); max-width: 55ch; }
.case-intro .button { margin-top: 20px; }
.scope-art {
  position: relative;
  display: grid;
  align-items: center;
  color: #dce6fd;
  background: repeating-linear-gradient(0deg, #88aafa17 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, #88aafa17 0 1px, transparent 1px 24px), radial-gradient(ellipse at 98% 15%, #364788bb, transparent 77%);
  padding: clamp(16px, 4vw, 54px);
}
.scope-art ul { position: relative; display: grid; padding: 0; list-style: none; gap: 11px; }
.scope-art li { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border: 1px solid #435181; border-left: 2px solid #ab76f8; background: #0b162cef; font-size: .91rem; }
.scope-art li span { min-width: 60px; color: #dfb9ff; font-size: .82rem; font-weight: 680; white-space: nowrap; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.spotlight { margin-top: 15px; }
.project-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: clamp(18px, 2.1vw, 28px);
  background: var(--deeper);
  border: 1px solid var(--line);
  min-width: 0;
}
.project-card:target { border-color: var(--highlight-strong); background: #141e3a; }
.project-card h3 { margin-top: 7px; }
.project-role { color: #d4e0fd; font-size: .83rem; font-weight: 630; line-height: 1.43; margin-block: 7px 10px; }
.project-description { color: var(--muted); font-size: .94rem; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin-top: auto; padding: 15px 0 0; }
.tags li { background: #152340; color: #d0ddf8; border: 1px solid #283a60; border-radius: 3px; padding: 2px 7px; line-height: 1.4; font-size: .7rem; }
.project-card .text-link { margin-top: 13px; font-size: .83rem; }

.about { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.35fr); align-items: center; gap: 25px clamp(30px, 6vw, 100px); }
.about-brand {
  min-height: 244px;
  padding: 20px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 42% 35%, #24365c, #111c34 67%, #0b1428);
  border: 1px solid var(--line);
  border-top-color: #7257a9;
}
.about-brand img { height: auto; width: min(80%, 256px); }
.about h2 { margin: 6px 0 12px; }
.about .about-role { color: #e4e6fa; font-weight: 615; }
.about p:not(.eyebrow):not(.about-role) { color: var(--muted); margin-top: 13px; }
.about .text-link { margin-top: 16px; }

.contact { padding-block: clamp(61px, 7.25vw, 100px); background: radial-gradient(ellipse at 15% 0, #282049, #131d37 57%, #101b33); border-top: 1px solid #44366c; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 26px 65px; }
.contact h2 { font-size: clamp(2.25rem, 4.45vw, 4rem); }
.contact h2 + p { margin-top: 13px; color: var(--muted); }
.contact-actions { display: grid; gap: 7px; margin-top: 21px; }
.contact-email, .contact-phone { width: fit-content; max-width: 100%; overflow-wrap: anywhere; font-weight: 635; }
.contact-email { color: var(--highlight); font-size: clamp(1.15rem, 2.45vw, 1.72rem); }
.contact-phone { font-size: 1.05rem; }
.contact-info { border-left: 1px solid #68578f; padding-left: 29px; }
.contact-info > p { font-size: 1.12rem; font-weight: 660; margin-bottom: 6px; }
.contact-info address { color: var(--muted); font-style: normal; }
.contact-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; }
.site-footer { background: #090f22; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px 21px; color: var(--muted); font-size: .85rem; padding-block: 19px; }
.footer-brand img { height: auto; width: 100px; }
.back-top:hover { color: var(--highlight); }

.page-lead {
  background: radial-gradient(ellipse at right top, #283765, #151a36 50%, #0b1429);
  border-bottom: 1px solid var(--line);
}
.lead-inner { padding-block: clamp(48px, 6.2vw, 87px); }
.page-lead h1 { max-width: 19ch; }
.page-lead h1 + p {
  max-width: 64ch;
  color: var(--muted);
  margin-top: 17px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}
.catalog { padding-block: 31px clamp(56px, 7.4vw, 99px); }
.portfolio-controls { margin-bottom: 16px; }
.search-label { display: block; margin-bottom: 5px; font-size: .91rem; font-weight: 630; }
.search-line { display: flex; gap: 7px; align-items: center; }
#project-search {
  width: min(100%, 370px);
  min-width: 0;
  color: var(--ink);
  background: #101a33;
  border: 1px solid #4e608b;
  border-radius: 5px;
  min-height: 45px;
  padding: 8px 12px;
}
#project-search::placeholder { color: #a7b4d1; }
.reset-search { border: 0; background: transparent; color: var(--highlight); text-decoration: underline; padding: 7px; font-size: .87rem; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.filters button {
  color: var(--ink);
  background: #121d36;
  min-height: 39px;
  padding: 6px 10px;
  border: 1px solid #47567b;
  border-radius: 4px;
  font-size: .84rem;
  font-weight: 580;
}
.filters button:hover { border-color: var(--highlight-strong); }
.filters button[aria-pressed="true"] { color: #211336; background: var(--highlight); border-color: var(--highlight); }
.project-count { margin-top: 11px; color: var(--muted); font-size: .84rem; }
.empty-state { margin-top: 12px; background: var(--deeper); padding: 21px; border: 1px solid var(--line); color: var(--muted); }
.section-cta { background: var(--deeper); border-top: 1px solid var(--line); }
.section-cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 15px 25px; padding-block: 28px; }
.section-cta p { font-size: 1.16rem; font-weight: 630; }

.breadcrumb { margin-bottom: 24px; }
.case-lead .eyebrow { margin-bottom: 8px; }
.case-article { padding-block: 29px clamp(55px, 7vw, 95px); }
.case-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--deeper); }
.case-facts div { padding: 16px 19px; }
.case-facts div + div { border-left: 1px solid var(--line); }
.case-facts dt { color: var(--highlight); font-size: .8rem; font-weight: 670; }
.case-facts dd { margin-top: 3px; color: #e5edff; font-size: .93rem; font-weight: 610; }
.case-story { margin-top: 43px; }
.case-story > p { margin-top: 13px; color: var(--muted); max-width: 74ch; }
.case-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 24px; }
.case-detail-grid section { background: var(--deeper); border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 30px); }
.case-detail-grid h3 { margin-top: 6px; }
.case-detail-grid ul { padding: 0 0 0 19px; margin-top: 10px; color: var(--muted); }
.case-detail-grid li + li { margin-top: 4px; }
.case-detail-grid li::marker { color: var(--highlight-strong); }
.case-story .case-note { color: #dedff8; border-left: 2px solid var(--highlight-strong); padding: 3px 0 3px 13px; }

@media (min-width: 1180px) {
  .hero h1 span { white-space: nowrap; }
}

@media (max-width: 980px) {
  .hero-grid { gap: 25px; }
  .hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.25rem); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-top > p { max-width: 27rem; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 70px; gap: 9px; }
  .brand { gap: 7px; }
  .brand img { width: 59px; }
  .brand-type strong { font-size: 1.06rem; }
  .brand-type small { display: none; }
  .navigation { gap: 12px; }
  .navigation a { font-size: .82rem; }
  .navigation .nav-contact { gap: 4px; padding-inline: 8px; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; gap: 27px; padding-block: 44px 25px; }
  .hero h1 { font-size: clamp(2.65rem, 8.9vw, 4.45rem); }
  .hero-copy > p { margin-top: 17px; }
  .actions { margin-top: 23px; }
  .hero-shot { aspect-ratio: 1.65; }
  .technology-inner { flex-direction: column; gap: 4px; padding-block: 13px; }
  .technology ul { column-gap: 14px; font-size: .8rem; }
  .section-top { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 22px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-case, .about { grid-template-columns: 1fr; }
  .case-intro { padding: 22px 22px 4px; }
  .scope-art { padding: 15px 22px 22px; }
  .about-brand { min-height: 160px; }
  .about-brand img { width: min(63%, 188px); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { padding: 19px 0 0; border-left: 0; border-top: 1px solid #52436d; }
  .footer-inner { font-size: .77rem; }
}

@media (max-width: 480px) {
  .site-header .brand img { width: 45px; }
  .navigation { gap: 8px; }
  .navigation a { font-size: .78rem; }
  .navigation a[href$="o-firmie"] { display: none; }
  .header-inner { min-height: 60px; }
  .button { padding-inline: 12px; gap: 8px; font-size: .84rem; min-height: 44px; }
  .project-grid, .service-grid, .case-facts, .case-detail-grid { grid-template-columns: 1fr; }
  .service { padding: 19px; }
  .service::before { margin-bottom: 11px; }
  .service p { margin-top: 5px; }
  .project-card h3 { font-size: 1.28rem; }
  .case-facts div { padding: 11px 14px; }
  .case-facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { order: 2; width: 100%; }
  .section-cta .wrap { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
  .header-inner { display: grid; grid-template-columns: 1fr; gap: 4px; padding-block: 8px; }
  .navigation { justify-content: space-between; }
  .navigation a[href$="o-firmie"] { display: inline-flex; }
  .navigation a { padding-block: 8px; }
  .hero h1 { font-size: clamp(2.25rem, 11.6vw, 2.65rem); }
}
