@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --bg: #101514;
  --surface: #171d1b;
  --text: #f2f4f1;
  --muted: #a2ada7;
  --line: #2b3430;
  --accent: #54d1bc;
  --cover: #183b33;
  --header: rgba(16, 21, 20, 0.94);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f7faf8;
  --surface: #eef3ef;
  --text: #15231c;
  --muted: #53655a;
  --line: #d0ded5;
  --accent: #127b69;
  --cover: #d7f1e5;
  --header: rgba(247, 250, 248, 0.95);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.65 Manrope,
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: var(--accent);
  color: #10221a;
}
.container {
  max-width: 1280px;
  width: calc(100% - 112px);
  margin: auto;
}
.accent {
  color: var(--accent);
}
.muted {
  color: var(--muted);
}
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.6px;
}
.brand img {
  object-fit: contain;
}
.desktop-nav {
  display: flex;
  gap: 31px;
  font-size: 14px;
  font-weight: 600;
}
.desktop-nav a:hover,
.text-link:hover,
.footer-link:hover {
  color: var(--accent);
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}
.language,
.theme {
  background: transparent;
  padding: 8px 3px;
  font-size: 13px;
  font-weight: 700;
}
.theme {
  display: grid;
  place-items: center;
}
.header-cta {
  border: 1px solid var(--line);
  padding: 9px 21px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
}
.header-cta:hover {
  border-color: var(--accent);
}
.menu {
  display: none;
}
.mobile-nav {
  padding: 12px 24px 20px;
}
.mobile-nav a {
  display: block;
  padding: 10px;
}
.skip {
  position: fixed;
  z-index: 30;
  top: 8px;
  left: 8px;
  padding: 10px;
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hero {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 64px;
  padding-top: 65px;
  padding-bottom: 64px;
  min-height: 690px;
}
.hero-copy {
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 1.6;
  font-weight: 700;
  margin: 0 0 23px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tiny-line {
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
h1 {
  font-size: clamp(50px, 5.4vw, 78px);
  line-height: 1.08;
  letter-spacing: -3.5px;
  margin: 21px 0 28px;
  font-weight: 700;
}
h1 span {
  color: var(--accent);
}
.intro {
  font-size: 18px;
  max-width: 490px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 27px;
  align-items: center;
  margin-top: 37px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 23px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 5px;
  min-height: 49px;
}
.primary {
  background: var(--accent);
  color: var(--bg);
}
.primary:hover {
  filter: brightness(1.1);
}
.text-link {
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.hero-bottom {
  margin-top: auto;
  padding-top: 65px;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
}
.hero-bottom > span {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-right: 14px;
}
.hero-bottom a:hover {
  color: var(--accent);
}
.portrait-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 550px;
  background: var(--cover);
  border-radius: 7px;
}
.portrait-top {
  position: absolute;
  top: 25px;
  left: 25px;
  right: 25px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--accent);
  z-index: 2;
}
.portrait-word {
  position: absolute;
  font-size: 76px;
  letter-spacing: -5px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.15;
  top: 65px;
  left: 30px;
}
.portrait {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 98%;
  object-fit: contain;
  object-position: center bottom;
  filter: grayscale(1);
  z-index: 1;
}
.portrait-caption {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(6, 16, 11, 0.95));
  padding: 90px 30px 27px;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.portrait-caption strong {
  font-size: 21px;
  font-weight: 600;
}
.portrait-caption span {
  font-size: 12px;
  color: #bacdc3;
  margin-top: 3px;
}
.stack-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stack {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}
.stack-label {
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: 1.7px;
}
.section {
  padding-top: 105px;
  padding-bottom: 100px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: flex-end;
  margin-bottom: 49px;
}
h2 {
  font-size: clamp(36px, 3.7vw, 50px);
  line-height: 1.18;
  letter-spacing: -1.9px;
  font-weight: 600;
  margin: 0;
}
.section-lead {
  max-width: 355px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
  margin: 0 0 4px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service {
  padding: 30px 25px 29px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent);
  margin-bottom: 30px;
}
.service-top span {
  font-size: 12px;
  color: var(--muted);
}
h3 {
  font-size: 22px;
  letter-spacing: -0.6px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 15px;
}
.service p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 23px;
  min-height: 111px;
}
.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.tags span {
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--muted);
  white-space: nowrap;
}
.work-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.project-cover {
  height: 253px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  color: #ecf4ef;
}
.cover-type {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #b2c8bd;
}
.cover-number {
  position: absolute;
  right: 21px;
  bottom: 15px;
  font-size: 12px;
  color: #91ab9d;
}
.cover-ai {
  background: #184239;
}
.architecture {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  font-size: 11px;
}
.node {
  border: 1px solid #5d8c7d;
  padding: 6px 23px;
  border-radius: 4px;
}
.main-node {
  background: #69d3b7;
  color: #153b30;
  font-weight: 800;
}
.connector {
  width: 1px;
  height: 15px;
  background: #5d8c7d;
}
.node-pair {
  display: flex;
  gap: 14px;
}
.node-pair span {
  border: 1px solid #5d8c7d;
  padding: 5px 12px;
  border-radius: 4px;
}
.cover-niva {
  background: #222e38;
}
.niva-title {
  font-size: 56px;
  letter-spacing: -3px;
  font-weight: 700;
  margin-top: 21px;
  line-height: 1.4;
}
.niva-title > span {
  color: #82bbd0;
}
.niva-title small {
  font-size: 8px;
  letter-spacing: 1.4px;
  display: block;
  font-weight: 500;
}
.routing {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  font-size: 8px;
  letter-spacing: 0.5px;
}
.route-rule {
  border-block: 1px solid #507588;
  padding: 8px 3px;
  color: #a0cad9;
}
.cover-infra {
  background: #403931;
}
.infra-title {
  font-size: 49px;
  font-weight: 700;
  letter-spacing: -2px;
  margin-top: 26px;
  color: #f3d4a0;
}
.infra-title > span {
  display: block;
  font-size: 9px;
  letter-spacing: 2.2px;
  color: #c5b79f;
}
.infra-flow {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  font-size: 9px;
  color: #d7c9b4;
  border-top: 1px solid #74654e;
  padding-top: 12px;
}
.project-body {
  padding: 25px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-kind {
  font-size: 10px !important;
  letter-spacing: 1.4px;
  color: var(--accent) !important;
  margin: 0 0 10px !important;
}
.project-body h3 {
  font-size: 23px;
  margin-bottom: 12px;
}
.project-body > p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 19px;
  line-height: 1.8;
}
.project-body .tags {
  margin-top: auto;
}
.case-link {
  background: none;
  text-align: left;
  border-top: 1px solid var(--line);
  width: 100%;
  padding: 18px 0 0;
  margin-top: 25px;
  font-size: 13px;
  font-weight: 700;
}
.case-link:hover {
  color: var(--accent);
}
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 95px;
}
.about-copy > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.9;
  margin: 25px 0;
  font-size: 16px;
}
.about-facts {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 34px;
}
.about-facts strong {
  font-size: 30px;
  line-height: 1.5;
  display: block;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: -1px;
}
.about-facts span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  max-width: 120px;
}
.timeline-head {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--muted);
  padding-bottom: 25px;
}
.timeline article {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.timeline article > span {
  font-size: 12px;
  color: var(--muted);
  padding-top: 3px;
}
.timeline h3 {
  font-size: 17px;
  margin-bottom: 7px;
  letter-spacing: -0.25px;
}
.timeline p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.timeline .current > span,
.timeline .current h3 {
  color: var(--accent);
}
.earlier-experience {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.earlier-experience summary {
  padding: 20px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.earlier-experience summary:hover {
  color: var(--accent);
}
.earlier-experience summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.earlier-experience article {
  padding: 14px 0;
}
.earlier-experience h3 {
  font-size: 15px;
}
.earlier-experience p:not(.timeline-stack) {
  font-size: 14px;
}
.process {
  padding-bottom: 105px;
}
.process > .eyebrow {
  margin-bottom: 30px;
}
.process-grid {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-top: 34px;
}
.process-grid article > span {
  font-size: 13px;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.process-grid h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.process-grid p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}
.contact-section {
  background: #a6e0cf;
  color: #163b2e;
}
.contact {
  padding-top: 77px;
  padding-bottom: 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
}
.contact h2 {
  font-size: 67px;
  letter-spacing: -3px;
  line-height: 1.05;
}
.contact p:not(.eyebrow) {
  max-width: 370px;
  font-size: 15px;
  line-height: 1.8;
  margin-top: 24px;
}
.contact .eyebrow {
  font-size: 10px;
}
.email {
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 500;
  letter-spacing: -1px;
  border-bottom: 1px solid #649c88;
  padding-bottom: 8px;
  word-break: break-word;
}
.contact-actions {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 29px;
}
.contact-button {
  background: #173e30;
  color: #f0faf4;
}
.contact-actions button {
  background: none;
  font-size: 13px;
  border-bottom: 1px solid #649c88;
  padding: 5px 0;
}
.contact .response {
  font-size: 12px !important;
  opacity: 0.75;
  margin: 18px 0 36px !important;
}
.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
}
.contact-social a:hover,
.email:hover {
  text-decoration: underline;
}
.footer {
  min-height: 112px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.footer .brand {
  font-size: 14px;
}
.footer p {
  font-size: 11px;
  color: var(--muted);
}
.footer-link {
  background: none;
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 11px 22px;
  border-radius: 5px;
  z-index: 30;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.toast.show {
  opacity: 1;
}
dialog {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: min(780px, calc(100% - 32px));
  max-height: 88vh;
  padding: 50px;
  position: fixed;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(7px);
}
.dialog-close {
  position: absolute;
  right: 17px;
  top: 12px;
  background: none;
  font-size: 30px;
  line-height: 1;
  width: 40px;
  height: 40px;
  color: var(--muted);
}
dialog h2 {
  font-size: 36px;
  padding-right: 10px;
}
dialog p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.case-section {
  margin-top: 28px;
}
.case-section h3 {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 8px;
}
.case-section p {
  margin-top: 0;
}
.case-tags {
  margin-top: 23px;
}
dialog .button {
  margin-top: 18px;
}
.mobile-nav[hidden] {
  display: none;
}
@media (min-width: 1450px) {
  .hero {
    min-height: 735px;
  }
  .portrait-panel {
    min-height: 600px;
  }
  .portrait-word {
    font-size: 88px;
  }
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 64px);
  }
  .hero {
    gap: 32px;
    min-height: 630px;
  }
  .portrait-panel {
    min-height: 500px;
  }
  h1 {
    font-size: 57px;
    letter-spacing: -2.5px;
  }
  .hero-actions {
    gap: 18px;
    flex-wrap: wrap;
  }
  .hero-bottom {
    gap: 16px;
    flex-wrap: wrap;
  }
  .hero-bottom > span {
    width: 100%;
    padding-bottom: 2px;
  }
  .desktop-nav {
    gap: 20px;
  }
  .nav-tools {
    gap: 15px;
  }
  .services-grid {
    gap: 16px;
  }
  .service {
    padding: 24px 20px;
  }
  .service p {
    min-height: 140px;
  }
  .project-grid {
    gap: 16px;
  }
  .project-body {
    padding: 22px 20px;
  }
  .project-cover {
    padding: 20px;
  }
  .project-body h3 {
    font-size: 21px;
  }
  .about {
    gap: 48px;
  }
  .routing {
    gap: 6px;
    font-size: 7px;
  }
  .niva-title {
    font-size: 49px;
  }
  .infra-title {
    font-size: 43px;
  }
  .infra-flow {
    gap: 7px;
    font-size: 8px;
  }
  .contact {
    gap: 40px;
  }
  .footer .brand {
    font-size: 12px;
  }
  .stack {
    font-size: 14px;
    padding-block: 20px;
  }
  .portrait-word {
    font-size: 58px;
  }
}
@media (max-width: 800px) {
  .desktop-nav {
    display: none;
  }
  .nav {
    height: 76px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 42px;
    padding-bottom: 42px;
    min-height: 570px;
  }
  .hero-copy {
    padding-top: 0;
  }
  h1 {
    font-size: 45px;
    letter-spacing: -2px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.4px;
  }
  .intro {
    font-size: 16px;
  }
  .hero-actions {
    gap: 17px;
    margin-top: 25px;
  }
  .hero-bottom {
    padding-top: 35px;
  }
  .portrait-panel {
    min-height: 460px;
  }
  .portrait-word {
    font-size: 48px;
    left: 18px;
  }
  .portrait-top {
    left: 18px;
    right: 18px;
    font-size: 8px;
    letter-spacing: 1px;
  }
  .portrait-caption {
    padding-inline: 20px;
  }
  .portrait-caption span {
    font-size: 10px;
  }
  .section {
    padding-block: 70px;
  }
  .section-head {
    gap: 30px;
  }
  .section-lead {
    max-width: 260px;
    font-size: 14px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service p {
    min-height: 0;
    margin-bottom: 16px;
  }
  .service {
    padding: 26px;
  }
  .service-top {
    margin-bottom: 20px;
  }
  .service-top svg {
    width: 30px;
    height: 30px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
  }
  .project-cover {
    height: 100%;
    min-height: 285px;
  }
  .project-body {
    padding: 28px;
  }
  .routing {
    font-size: 8px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-facts {
    justify-content: flex-start;
    gap: 50px;
  }
  .about-facts span {
    font-size: 12px;
  }
  .timeline article {
    padding-block: 20px;
  }
  .timeline p {
    font-size: 14px;
  }
  .process {
    padding-bottom: 70px;
  }
  .process-grid {
    gap: 25px;
  }
  .process-grid h3 {
    font-size: 18px;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 60px;
  }
  .contact h2 {
    font-size: 58px;
  }
  .contact p:not(.eyebrow) {
    max-width: 480px;
  }
  .contact .response {
    margin-bottom: 22px !important;
  }
  .email {
    font-size: 28px;
  }
  .footer {
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 25px;
  }
  .footer p {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 8px 0;
    width: 25px;
  }
  .menu span {
    width: 23px;
    height: 1px;
    background: var(--text);
  }
}
@media (max-width: 550px) {
  .container {
    width: calc(100% - 40px);
  }
  .nav {
    gap: 15px;
  }
  .brand {
    font-size: 14px;
    gap: 6px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .nav-tools {
    gap: 14px;
  }
  .header-cta {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 35px;
  }
  .hero h1 {
    font-size: 59px;
    letter-spacing: -2.6px;
    margin: 13px 0 23px;
  }
  .intro {
    font-size: 16px;
    max-width: 100%;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
  }
  .hero-bottom {
    padding-top: 33px;
    gap: 18px;
  }
  .hero-bottom > span {
    width: auto;
    font-size: 8px;
    letter-spacing: 0.6px;
    margin-right: 0;
  }
  .hero-bottom a {
    font-size: 11px;
  }
  .hero-actions {
    gap: 23px;
  }
  .hero-actions .button {
    font-size: 13px;
    padding: 13px 18px;
  }
  .text-link {
    font-size: 12px;
  }
  .portrait-panel {
    min-height: 435px;
    /* Mobile: portrait first, text below (Farhaan, 2026-11-16). DOM order unchanged. */
    order: -1;
  }
  .portrait {
    width: 100%;
    height: 113%;
    object-position: bottom;
  }
  .portrait-word {
    font-size: 69px;
    left: 22px;
    top: 60px;
  }
  .portrait-caption strong {
    font-size: 20px;
  }
  .portrait-caption span {
    font-size: 11px;
  }
  .stack {
    justify-content: flex-start;
    gap: 15px 25px;
    font-size: 13px;
    padding: 24px 0;
  }
  .stack-label {
    width: 100%;
  }
  .section-head {
    display: block;
    margin-bottom: 30px;
  }
  h2 {
    font-size: 37px;
    letter-spacing: -1.4px;
  }
  .section-lead {
    max-width: 100%;
    font-size: 15px;
    margin-top: 23px;
  }
  .section {
    padding-block: 60px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 17px;
  }
  .service p {
    font-size: 15px;
  }
  .project {
    display: flex;
  }
  .project-cover {
    height: 230px;
    min-height: 230px;
  }
  .niva-title {
    font-size: 57px;
    margin-top: 15px;
  }
  .routing {
    font-size: 9px;
    margin-top: 19px;
    gap: 18px;
  }
  .infra-title {
    font-size: 54px;
    margin-top: 13px;
  }
  .infra-flow {
    font-size: 10px;
    gap: 18px;
    margin-top: 19px;
  }
  .project-body {
    padding: 26px;
  }
  .project-body h3 {
    font-size: 24px;
  }
  .project-body > p {
    min-height: 0;
  }
  .project-grid {
    gap: 24px;
  }
  .about-facts {
    justify-content: space-between;
    gap: 17px;
  }
  .about-facts strong {
    font-size: 27px;
  }
  .about-facts span {
    font-size: 10px;
  }
  .timeline article {
    gap: 15px;
    grid-template-columns: 65px 1fr;
  }
  .timeline h3 {
    font-size: 17px;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .process-grid article {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 0 15px;
  }
  .process-grid article > span {
    grid-row: span 2;
    margin-top: 3px;
  }
  .process-grid h3 {
    font-size: 20px;
  }
  .process-grid p {
    font-size: 15px;
  }
  .contact h2 {
    font-size: 57px;
  }
  .contact-social {
    gap: 20px;
  }
  .email {
    font-size: 24px;
  }
  .contact-actions {
    margin-top: 24px;
  }
  .footer .brand {
    font-size: 14px;
  }
  .footer p {
    font-size: 10px;
  }
  dialog {
    padding: 45px 24px 30px;
  }
  dialog h2 {
    font-size: 29px;
  }
  .tags span {
    font-size: 12px;
  }
  .cover-type,
  .portrait-top,
  .project-kind,
  .stack-label,
  .timeline-head {
    font-size: 12px !important;
    letter-spacing: 1px;
  }
  .hero-bottom > span {
    font-size: 12px;
    width: 100%;
  }
  .hero .eyebrow {
    font-size: 12px;
  }
  .hero-bottom a {
    font-size: 14px;
  }
  .routing,
  .infra-flow {
    font-size: 12px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .niva-title small,
  .infra-title > span {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .about-facts span,
  .portrait-caption span {
    font-size: 12px;
  }
  .cover-number {
    font-size: 12px;
  }
}
.service p,
.project-body > p:not(.project-kind),
.process-grid p,
.contact p:not(.eyebrow),
dialog p {
  font-size: 16px;
}
.case-link,
.text-link,
.language,
.contact-actions button,
.contact-social {
  font-size: 14px;
}
.project-body > p {
  min-height: 87px;
}
.portrait-top,
.cover-type,
.project-kind,
.timeline-head,
.stack-label,
.hero-bottom > span,
.niva-title small,
.infra-title > span {
  font-size: 12px;
  letter-spacing: 1px;
}
.routing,
.infra-flow {
  font-size: 12px;
  flex-wrap: wrap;
}
.stack-label {
  font-size: 12px !important;
}
.timeline p {
  font-size: 16px;
}
.about-facts span {
  font-size: 12px;
}
.hero-bottom {
  flex-wrap: wrap;
}
.hero-bottom > span {
  width: 100%;
}
.hero h1 {
  overflow-wrap: normal;
}
.contact .response {
  font-size: 14px !important;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.timeline p.timeline-stack {
  font-size: 12px;
  line-height: 1.8;
  color: var(--accent);
  margin-top: 10px;
}
.about-copy {
  align-self: start;
}
@media (min-width: 801px) {
  .about-copy {
    position: sticky;
    top: 120px;
  }
}

.about-copy p.citizenship-note {
  border-left: 2px solid var(--accent);
  padding-left: 17px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  margin-top: 30px;
}

.contact-form .field-error {
  color: #702822;
  font-size: 0.85rem;
  margin-top: -0.25rem;
}
.contact-form [aria-invalid="true"] {
  border-color: #702822;
}


@media (max-width: 950px) {
  .desktop-nav {
    display: none;
  }
  .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    padding: 0;
    width: 44px;
    height: 44px;
    margin-right: -8.5px;
  }
  .menu span {
    width: 23px;
    height: 1px;
    background: var(--text);
  }
  /* 44x44 touch targets; the icons keep their size and vertical alignment. */
  .language,
  .theme {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }
  .nav-tools {
    gap: 0;
  }
  .header-cta {
    margin-inline: 6px;
  }
}
