:root {
  --blue: #073f91;
  --blue-bright: #0b58c7;
  --blue-deep: #061f55;
  --navy: #071734;
  --ink: #10213f;
  --gray: #aeb5c1;
  --light: #f3f6fa;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(9, 54, 116, 0.09);
  display: flex;
  height: 82px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(24px, 5vw, 76px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: baseline;
  display: inline-flex;
  font-family: "Courier New", monospace;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -2.2px;
}

.brand-bracket, .brand-wit { color: var(--blue); }
.brand-soft { color: #aeb1b7; }

.main-nav { display: flex; gap: 40px; }
.main-nav a {
  color: #50617b;
  font-size: 14px;
  font-weight: 700;
  position: relative;
}
.main-nav a::after {
  background: var(--blue-bright);
  bottom: -8px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
  width: 100%;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }

.header-cta {
  align-items: center;
  background: var(--blue);
  border-radius: 9px;
  color: white;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 13px;
  padding: 13px 18px;
  transition: background .2s ease, transform .2s ease;
}
.header-cta:hover { background: var(--blue-bright); transform: translateY(-2px); }

.hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(32, 102, 206, .38), transparent 22%),
    linear-gradient(118deg, #071a3c 0%, #082b66 53%, #071b42 100%);
  color: white;
  display: grid;
  gap: 32px 6vw;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  min-height: 760px;
  overflow: hidden;
  padding: 170px clamp(28px, 7vw, 110px) 55px;
  position: relative;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  inset: 0;
  mask-image: linear-gradient(to right, black, transparent 80%);
  position: absolute;
}
.hero-orbit { border: 1px solid rgba(255,255,255,.07); border-radius: 50%; position: absolute; }
.orbit-one { height: 620px; right: -210px; top: 40px; width: 620px; }
.orbit-two { height: 390px; right: -90px; top: 154px; width: 390px; }

.hero-copy, .hero-code, .hero-foot { position: relative; z-index: 2; }

.eyebrow {
  align-items: center;
  color: #9cb8e3;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 11px;
  letter-spacing: .18em;
  margin: 0 0 28px;
  text-transform: uppercase;
}
.eyebrow > span { background: #3e8cf8; display: inline-block; height: 2px; width: 28px; }

.hero h1 {
  font-size: clamp(52px, 6vw, 86px);
  letter-spacing: -.055em;
  line-height: .98;
  margin: 0;
  max-width: 800px;
}
.hero h1 span { color: #8da8d0; }
.hero-description {
  color: #c2cee0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
  margin: 35px 0 36px;
  max-width: 610px;
}

.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 28px; }
.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 24px;
  padding: 17px 21px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button-primary { background: #1262d4; box-shadow: 0 12px 28px rgba(0,0,0,.2); color: white; }
.button-primary:hover { box-shadow: 0 16px 36px rgba(0,0,0,.28); transform: translateY(-3px); }
.text-link { color: #c5d1e3; font-size: 13px; font-weight: 800; }

.hero-code { align-items: center; display: flex; justify-content: center; min-height: 390px; }
.code-window {
  background: rgba(6, 20, 49, .76);
  border: 1px solid rgba(131, 172, 230, .22);
  border-radius: 14px;
  box-shadow: 0 38px 90px rgba(0, 7, 22, .45);
  max-width: 490px;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
  width: 100%;
}
.window-bar {
  align-items: center;
  background: rgba(255,255,255,.045);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  gap: 7px;
  height: 48px;
  padding: 0 18px;
}
.window-bar span { background: #40618f; border-radius: 50%; height: 8px; width: 8px; }
.window-bar span:nth-child(2) { opacity: .7; }
.window-bar span:nth-child(3) { opacity: .4; }
.window-bar small { color: #6683ac; font-family: monospace; margin-left: auto; }
.code-content {
  display: grid;
  font-family: "Courier New", monospace;
  font-size: clamp(13px, 1.2vw, 16px);
  gap: 13px 20px;
  grid-template-columns: 22px 1fr;
  padding: 36px 34px 42px;
}
.code-content p { color: #c7d7ec; margin: 0; }
.code-content .line-number { color: #395578; font-size: 12px; }
.code-content .indent { padding-left: 28px; }
.code-content b { color: #63a1ff; font-weight: normal; }
.code-content em { color: #d5e3f7; font-style: normal; }
.code-content q { color: #78d2c0; }
.code-content strong { color: #f1c870; font-weight: normal; }
.floating-chip {
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(13, 42, 87, .94);
  border: 1px solid rgba(138, 177, 231, .24);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  color: #d7e2f2;
  display: flex;
  font-family: monospace;
  font-size: 12px;
  gap: 9px;
  padding: 12px 14px;
  position: absolute;
}
.floating-chip span { color: #79adfa; font-size: 20px; }
.floating-chip i { background: #55d9a6; border-radius: 50%; box-shadow: 0 0 0 4px rgba(85,217,166,.13); height: 7px; width: 7px; }
.chip-top { right: -16px; top: 8%; }
.chip-bottom { bottom: 4%; left: -10px; }

.hero-foot {
  align-self: end;
  color: #7389aa;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  grid-column: 1 / -1;
  justify-content: space-between;
  letter-spacing: .16em;
  margin-top: 40px;
  text-transform: uppercase;
}
.scroll-hint { display: flex; gap: 18px; }
.scroll-hint b { color: #4e91eb; }

.section { padding: 110px clamp(28px, 7vw, 110px); }
.services { background: #f6f8fb; }
.section-intro { display: grid; gap: 0 6vw; grid-template-columns: 1.1fr .9fr; margin-bottom: 58px; }
.eyebrow-dark { color: var(--blue); grid-column: 1 / -1; }
.section-intro h2, .portfolio-teaser h2 {
  color: var(--ink);
  font-size: clamp(40px, 4.5vw, 65px);
  letter-spacing: -.05em;
  line-height: 1.03;
  margin: 0;
}
.section-intro h2 span, .portfolio-teaser h2 span { color: #9ca6b5; }
.section-intro > p:last-child {
  align-self: end;
  color: #627088;
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}
.services-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.service-card {
  background: white;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 28px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { border-color: #a5c3ef; box-shadow: 0 20px 50px rgba(36,65,105,.1); transform: translateY(-5px); }
.service-top { align-items: center; display: flex; justify-content: space-between; }
.service-number { color: #9aa6b8; font-family: monospace; font-size: 12px; }
.service-arrow { color: var(--blue); font-size: 20px; }
.service-card h3 { font-size: 20px; line-height: 1.25; margin: 46px 0 16px; }
.service-card p { color: #66748a; font-size: 14px; line-height: 1.65; margin: 0 0 30px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.tag-list span { background: #eef3fa; border-radius: 99px; color: #49607d; font-size: 10px; font-weight: 800; padding: 7px 9px; }

.portfolio { background: var(--navy); color: white; }
.portfolio-heading {
  align-items: end;
  display: grid;
  gap: 40px 7vw;
  grid-template-columns: 1.1fr .9fr;
  margin-bottom: 64px;
}
.portfolio-heading h2, .about-copy h2, .process-heading h2, .contact h2 {
  font-size: clamp(40px, 4.5vw, 65px);
  letter-spacing: -.05em;
  line-height: 1.04;
  margin: 0;
}
.portfolio-heading h2 span { color: #7486a2; }
.portfolio-heading > p {
  color: #9babc2;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 3px;
  max-width: 560px;
}
.projects-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card {
  background: #0b1c3a;
  border: 1px solid rgba(142, 169, 205, .16);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.project-card:hover { border-color: rgba(94, 155, 240, .5); transform: translateY(-5px); }
.project-visual {
  align-items: end;
  background: linear-gradient(145deg, #153d7c, #0a244e);
  display: flex;
  height: 315px;
  justify-content: center;
  overflow: hidden;
  padding: 55px 48px 0;
  position: relative;
}
.project-visual::before, .project-visual::after {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  content: "";
  height: 300px;
  position: absolute;
  right: -100px;
  top: -90px;
  width: 300px;
}
.project-visual::after { height: 190px; right: -45px; top: -35px; width: 190px; }
.project-cmc .project-visual { background: linear-gradient(145deg, #324965, #18283d); }
.project-gamehives .project-visual { background: linear-gradient(145deg, #3346a2, #151d58); }
.project-motologia .project-visual { background: linear-gradient(145deg, #3b414b, #151a22); }
.browser-shell {
  background: #f5f7fb;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 22px 45px rgba(0,0,0,.3);
  max-width: 480px;
  min-height: 240px;
  overflow: hidden;
  position: relative;
  transform: translateY(7px);
  width: 100%;
  z-index: 2;
}
.browser-top { align-items: center; background: #e9edf3; display: flex; gap: 6px; height: 31px; padding: 0 11px; }
.browser-top i { background: #bec8d5; border-radius: 50%; height: 6px; width: 6px; }
.browser-top span { color: #8290a4; font-family: monospace; font-size: 8px; margin-left: auto; }
.browser-body {
  background:
    linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,.5)),
    linear-gradient(140deg, #d8e5f5, #f3f6fa);
  color: #1a3155;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 34px;
  position: relative;
}
.project-cmc .browser-body { background: linear-gradient(140deg, #edf1f5, #d8e0e9); color: #2f435c; }
.project-gamehives .browser-body { background: linear-gradient(140deg, #eef0ff, #d8dcfa); color: #323e8f; }
.project-motologia .browser-body { background: linear-gradient(140deg, #eceff2, #d3d7dc); color: #272e38; }
.browser-body::after {
  background: rgba(34, 91, 167, .1);
  border-radius: 50%;
  content: "";
  height: 180px;
  position: absolute;
  right: -50px;
  top: 32px;
  width: 180px;
}
.browser-body small { font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.browser-body strong { font-size: clamp(20px, 2.2vw, 31px); letter-spacing: -.04em; margin: 13px 0 20px; max-width: 70%; position: relative; z-index: 1; }
.mock-line { background: currentColor; height: 4px; margin-bottom: 7px; opacity: .16; width: 34%; }
.line-wide { width: 54%; }
.mock-button { background: currentColor; border-radius: 3px; height: 21px; margin-top: 14px; opacity: .8; width: 64px; }
.project-index {
  color: rgba(255,255,255,.55);
  font-family: monospace;
  font-size: 11px;
  left: 20px;
  position: absolute;
  top: 20px;
}
.project-content {
  display: grid;
  gap: 0 20px;
  grid-template-columns: 1fr auto;
  padding: 30px;
}
.project-sector { color: #6f89ad !important; font-size: 9px !important; font-weight: 800; letter-spacing: .16em; margin: 0 0 8px !important; text-transform: uppercase; }
.project-content h3 { font-size: 25px; letter-spacing: -.03em; margin: 0; }
.visit-link {
  align-items: center;
  border: 1px solid #29446b;
  border-radius: 50%;
  color: #8eb9f7;
  display: flex;
  font-size: 18px;
  height: 42px;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
  width: 42px;
}
.visit-link:hover { background: #1463d4; color: white; }
.project-content > p {
  color: #9aa9be;
  font-size: 14px;
  grid-column: 1 / -1;
  line-height: 1.7;
  margin: 23px 0 26px;
  max-width: 590px;
}
.project-meta { align-items: end; display: flex; flex-wrap: wrap; gap: 20px; grid-column: 1 / -1; justify-content: space-between; }
.project-card .tag-list span { background: #10284d; color: #8fa7c8; }
.project-url { color: #6684ac; font-family: monospace; font-size: 10px; }
.project-url:hover { color: #a8cbff; }
.related-projects { border-top: 1px solid #1c3456; grid-column: 1 / -1; margin-top: 26px; padding-top: 22px; }
.related-projects > span { color: #5d7394; display: block; font-size: 9px; font-weight: 800; letter-spacing: .15em; margin-bottom: 13px; text-transform: uppercase; }
.related-projects > div { display: flex; flex-wrap: wrap; gap: 8px; }
.related-projects a { background: #10284d; border-radius: 5px; color: #a9bbd4; font-size: 10px; padding: 9px 11px; transition: background .2s ease; }
.related-projects a:hover { background: #17417b; }

.about {
  align-items: center;
  background: white;
  display: grid;
  gap: 9vw;
  grid-template-columns: .8fr 1.2fr;
}
.about-mark {
  align-items: center;
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--blue), #071344 78%);
  border: 9px solid #d0d3d8;
  border-radius: 25%;
  box-shadow: 0 34px 70px rgba(16, 43, 83, .24);
  display: flex;
  justify-content: center;
  max-width: 390px;
  overflow: hidden;
  position: relative;
  transform: rotate(-3deg);
  width: 100%;
}
.about-mark > span { color: #c9ccd1; font-family: "Courier New", monospace; font-size: clamp(70px, 9vw, 125px); font-weight: 800; letter-spacing: -10px; position: relative; z-index: 2; }
.about-ring { border: 1px solid rgba(255,255,255,.11); border-radius: 50%; position: absolute; }
.ring-one { height: 330px; left: -170px; top: -150px; width: 330px; }
.ring-two { bottom: -120px; height: 250px; right: -100px; width: 250px; }
.about-copy h2 span, .process-heading h2 span { color: #9da7b5; }
.about-copy > p:not(.eyebrow) { color: #5e6d82; font-size: 17px; line-height: 1.75; margin: 31px 0 38px; max-width: 710px; }
.about-numbers { border-top: 1px solid #e3e7ed; display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 28px; }
.about-numbers div { border-right: 1px solid #e3e7ed; padding: 0 24px; }
.about-numbers div:first-child { padding-left: 0; }
.about-numbers div:last-child { border-right: 0; }
.about-numbers strong { color: var(--blue); display: block; font-family: "Courier New", monospace; font-size: 32px; }
.about-numbers span { color: #778397; display: block; font-size: 10px; font-weight: 700; line-height: 1.4; margin-top: 8px; text-transform: uppercase; }

.process { background: #f3f6fa; }
.process-heading { margin-bottom: 58px; }
.process-list { border-bottom: 1px solid #dbe2ea; border-top: 1px solid #dbe2ea; display: grid; grid-template-columns: repeat(4, 1fr); }
.process-list article { border-right: 1px solid #dbe2ea; min-height: 250px; padding: 30px 30px 35px 0; }
.process-list article + article { padding-left: 30px; }
.process-list article:last-child { border-right: 0; }
.process-list span { color: #6f89ad; font-family: monospace; font-size: 11px; }
.process-list h3 { font-size: 22px; margin: 55px 0 14px; }
.process-list p { color: #69778c; font-size: 13px; line-height: 1.65; margin: 0; max-width: 230px; }

.contact {
  background: linear-gradient(120deg, #093985 0%, #0d53b7 100%);
  color: white;
  overflow: hidden;
  position: relative;
  text-align: center;
}
.contact-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  inset: 0;
  mask-image: radial-gradient(circle, black 0%, transparent 70%);
  position: absolute;
}
.contact > *:not(.contact-grid) { position: relative; z-index: 2; }
.contact .eyebrow { justify-content: center; }
.contact .eyebrow > span { background: #a4c7fa; }
.contact h2 { font-size: clamp(45px, 6vw, 82px); }
.contact h2 span { color: #97bbef; }
.contact > p:not(.eyebrow) { color: #ccdaf0; font-size: 17px; line-height: 1.7; margin: 30px auto 35px; max-width: 650px; }
.button-light { background: white; color: var(--blue); }
.button-light:hover { box-shadow: 0 16px 38px rgba(0,0,0,.25); transform: translateY(-3px); }

.site-footer {
  align-items: center;
  background: #050f24;
  color: #687b97;
  display: grid;
  font-size: 10px;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  letter-spacing: .11em;
  padding: 38px clamp(28px, 7vw, 110px);
  text-transform: uppercase;
}
.footer-brand { font-size: 21px; letter-spacing: -2px; }
.site-footer p { margin: 0; }
.site-footer p:last-child { text-align: right; }
.site-footer p:last-child span { margin-left: 22px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 150px; }
  .hero-copy { max-width: 760px; }
  .hero-code { margin: 20px auto 0; max-width: 620px; width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-heading { grid-template-columns: 1fr; }
  .about { gap: 6vw; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list article:nth-child(2) { border-right: 0; }
  .process-list article:nth-child(-n+2) { border-bottom: 1px solid #dbe2ea; }
  .process-list article:nth-child(3) { padding-left: 0; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > p:nth-child(2) { display: none; }
}

@media (max-width: 720px) {
  .site-header { height: 72px; }
  .brand { font-size: 23px; }
  .main-nav { display: none; }
  .header-cta { font-size: 0; gap: 0; padding: 12px 14px; }
  .header-cta span { font-size: 16px; }
  .hero { min-height: auto; padding: 132px 24px 40px; }
  .hero h1 { font-size: clamp(45px, 14vw, 66px); }
  .hero-description { font-size: 17px; }
  .hero-code { min-height: 360px; }
  .code-window { transform: none; }
  .floating-chip { display: none; }
  .hero-foot { margin-top: 12px; }
  .scroll-hint { display: none; }
  .section { padding: 78px 24px; }
  .section-intro { display: block; }
  .section-intro h2 { margin-bottom: 26px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 300px; }
  .portfolio-heading { display: block; }
  .portfolio-heading h2 { margin-bottom: 25px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-visual { height: 270px; padding: 50px 22px 0; }
  .project-content { padding: 24px; }
  .project-meta { align-items: flex-start; flex-direction: column; }
  .related-projects > div { flex-direction: column; }
  .related-projects a { display: flex; justify-content: space-between; }
  .about { grid-template-columns: 1fr; }
  .about-mark { margin: 0 auto; max-width: 280px; }
  .about-numbers { gap: 20px; grid-template-columns: 1fr; }
  .about-numbers div, .about-numbers div:first-child { border-bottom: 1px solid #e3e7ed; border-right: 0; padding: 0 0 20px; }
  .about-numbers div:last-child { border-bottom: 0; }
  .process-list { grid-template-columns: 1fr; }
  .process-list article, .process-list article + article, .process-list article:nth-child(3) { border-bottom: 1px solid #dbe2ea; border-right: 0; min-height: 210px; padding: 26px 0; }
  .process-list article:last-child { border-bottom: 0; }
  .process-list h3 { margin-top: 38px; }
  .contact { padding: 82px 24px; }
  .site-footer { align-items: start; grid-template-columns: 1fr; }
  .site-footer p:last-child { line-height: 1.8; text-align: left; }
  .site-footer p:last-child span { display: block; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.cookie-consent[hidden] { display: none; }
.cookie-consent {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce3ec;
  border-radius: 14px;
  bottom: 22px;
  box-shadow: 0 24px 70px rgba(5, 24, 58, .24);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 50%;
  max-width: 940px;
  padding: 24px;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 44px);
  z-index: 1000;
}
.cookie-consent__text h2 {
  color: #10213f;
  font-size: 18px;
  margin: 0 0 8px;
}
.cookie-consent__text p {
  color: #627088;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}
.cookie-consent__actions { display: flex; gap: 10px; }
.cookie-button {
  border: 1px solid #073f91;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 13px 16px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.cookie-button:hover { transform: translateY(-2px); }
.cookie-button--reject { background: #ffffff; color: #073f91; }
.cookie-button--accept { background: #073f91; color: #ffffff; }
.cookie-settings {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  padding: 0;
  text-transform: uppercase;
}
.cookie-settings:hover { color: #a8cbff; }
@media (max-width: 720px) {
  .cookie-consent { align-items: stretch; bottom: 12px; gap: 18px; grid-template-columns: 1fr; padding: 20px; width: calc(100% - 24px); }
  .cookie-consent__actions { flex-direction: column-reverse; }
  .cookie-button { width: 100%; }
}